Red Bird Racing VCU v2
 
Loading...
Searching...
No Matches
TelemetryFramePedal::StateByteStatus::Bits Struct Reference

Bitfield representation of the status bits. More...

#include <CarState.hpp>

Collaboration diagram for TelemetryFramePedal::StateByteStatus::Bits:

Public Attributes

CarStatus car_status: 2
 
bool state_unknown: 1
 
bool hv_ready: 1
 
bool bms_no_msg: 1
 
bool motor_no_read: 1
 
bool screenshot: 1
 
bool force_stop: 1
 

Detailed Description

Bitfield representation of the status bits.

Definition at line 37 of file CarState.hpp.

Member Data Documentation

◆ bms_no_msg

bool TelemetryFramePedal::StateByteStatus::Bits::bms_no_msg

BMS read no message

Definition at line 42 of file CarState.hpp.

Referenced by BMS::checkHv().

◆ car_status

CarStatus TelemetryFramePedal::StateByteStatus::Bits::car_status

Current car status, produces compiler warning before GCC 9.3 due to bug

Definition at line 39 of file CarState.hpp.

Referenced by loop(), and Pedal::sendFrame().

◆ force_stop

bool TelemetryFramePedal::StateByteStatus::Bits::force_stop

Fault forced car to stop

Definition at line 45 of file CarState.hpp.

Referenced by loop(), Pedal::sendFrame(), and Pedal::update().

◆ hv_ready

bool TelemetryFramePedal::StateByteStatus::Bits::hv_ready

High voltage ready

Definition at line 41 of file CarState.hpp.

Referenced by BMS::BMS(), BMS::checkHv(), BMS::hvReady(), and loop().

◆ motor_no_read

bool TelemetryFramePedal::StateByteStatus::Bits::motor_no_read

MCU read no message

Definition at line 43 of file CarState.hpp.

Referenced by Pedal::pedalTorqueMapping(), and Pedal::readMotor().

◆ screenshot

bool TelemetryFramePedal::StateByteStatus::Bits::screenshot

Screenshot, throttle + brake > threshold

Definition at line 44 of file CarState.hpp.

Referenced by Pedal::pedalTorqueMapping().

◆ state_unknown

bool TelemetryFramePedal::StateByteStatus::Bits::state_unknown

Unknown car state

Definition at line 40 of file CarState.hpp.


The documentation for this struct was generated from the following file: