Bitfield representation of the status bits. More...
#include <CarState.hpp>
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 |
Bitfield representation of the status bits.
Definition at line 37 of file CarState.hpp.
| bool TelemetryFramePedal::StateByteStatus::Bits::bms_no_msg |
| 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().
| 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().
| 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().
| 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().
| bool TelemetryFramePedal::StateByteStatus::Bits::screenshot |
Screenshot, throttle + brake > threshold
Definition at line 44 of file CarState.hpp.
Referenced by Pedal::pedalTorqueMapping().
| bool TelemetryFramePedal::StateByteStatus::Bits::state_unknown |
Unknown car state
Definition at line 40 of file CarState.hpp.