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

Definition of the CarState structure representing the state of the car. More...

#include "Enums.hpp"
#include <can.h>
#include <stdint.h>
Include dependency graph for CarState.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TelemetryFramePedal
 Telemetry frame structure for the Pedals. More...
 
union  TelemetryFramePedal::StateByteStatus
 Union of bits for car status besides Pedal. More...
 
struct  TelemetryFramePedal::StateByteStatus::Bits
 Bitfield representation of the status bits. More...
 
union  TelemetryFramePedal::StateByteFaults
 Union of bits for pedal faults. More...
 
struct  TelemetryFramePedal::StateByteFaults::Bits
 Bitfield representation of the fault bits. More...
 
struct  TelemetryFrameMotor
 Telemetry frame structure for motor signals. More...
 
struct  TelemetryFrameBms
 Telemetry frame structure for the BMS data. More...
 
struct  CarState
 Represents the state of the car. Holds telemetry data and status, used as central data sharing structure. More...
 

Variables

constexpr canid_t TELEMETRY_PEDAL_MSG = 0x700
 
constexpr canid_t TELEMETRY_MOTOR_MSG = 0x701
 
constexpr canid_t TELEMETRY_BMS_MSG = 0x710
 

Detailed Description

Definition of the CarState structure representing the state of the car.

Author
Planeson, Red Bird Racing
Version
1.4.1
Date
2026-02-09
See also
can.h, Enums.h

Definition in file CarState.hpp.

Variable Documentation

◆ TELEMETRY_BMS_MSG

constexpr canid_t TELEMETRY_BMS_MSG = 0x710
constexpr

Telemetry: Car state message

Definition at line 19 of file CarState.hpp.

Referenced by TelemetryFrameBms::toCanFrame().

◆ TELEMETRY_MOTOR_MSG

constexpr canid_t TELEMETRY_MOTOR_MSG = 0x701
constexpr

Telemetry: Digital signals message

Definition at line 18 of file CarState.hpp.

Referenced by TelemetryFrameMotor::toCanFrame().

◆ TELEMETRY_PEDAL_MSG

constexpr canid_t TELEMETRY_PEDAL_MSG = 0x700
constexpr

Telemetry: Pedal readings message

Definition at line 17 of file CarState.hpp.

Referenced by TelemetryFramePedal::toCanFrame().