Represents the state of the car. Holds telemetry data and status, used as central data sharing structure. More...
#include <CarState.hpp>
Public Attributes | |
| TelemetryFramePedal | pedal |
| TelemetryFrameMotor | motor |
| TelemetryFrameBms | bms |
| uint32_t | status_millis |
| uint32_t | millis |
Represents the state of the car. Holds telemetry data and status, used as central data sharing structure.
Definition at line 157 of file CarState.hpp.
| TelemetryFrameBms CarState::bms |
Struct holding BMS telemetry data, ready for sending over CAN
Definition at line 161 of file CarState.hpp.
Referenced by Telemetry::sendBms().
| uint32_t CarState::millis |
Current time in milliseconds for the current loop iteration
Definition at line 163 of file CarState.hpp.
Referenced by loop(), Pedal::readMotor(), and Pedal::update().
| TelemetryFrameMotor CarState::motor |
Struct holding motor telemetry data, ready for sending over CAN
Definition at line 160 of file CarState.hpp.
Referenced by Pedal::readMotor(), Pedal::sendFrame(), and Telemetry::sendMotor().
| TelemetryFramePedal CarState::pedal |
Struct holding pedal telemetry data, ready for sending over CAN
Definition at line 159 of file CarState.hpp.
Referenced by BMS::BMS(), BMS::checkHv(), Pedal::checkPedalFault(), BMS::hvReady(), loop(), Pedal::pedalTorqueMapping(), Pedal::readMotor(), Pedal::sendFrame(), Telemetry::sendPedal(), and Pedal::update().
| uint32_t CarState::status_millis |
Millisecond counter for the current car status (for state transitions)
Definition at line 162 of file CarState.hpp.
Referenced by loop().