Red Bird Racing VCU v2
 
Loading...
Searching...
No Matches
CarState Struct Reference

Represents the state of the car. Holds telemetry data and status, used as central data sharing structure. More...

#include <CarState.hpp>

Collaboration diagram for CarState:

Public Attributes

TelemetryFramePedal pedal
 
TelemetryFrameMotor motor
 
TelemetryFrameBms bms
 
uint32_t status_millis
 
uint32_t millis
 

Detailed Description

Represents the state of the car. Holds telemetry data and status, used as central data sharing structure.

See also
TelemetryFramePedal, TelemetryFrameMotor, TelemetryFrameBms

Definition at line 157 of file CarState.hpp.

Member Data Documentation

◆ bms

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().

◆ millis

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().

◆ motor

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().

◆ pedal

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().

◆ status_millis

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().


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