Enumeration definitions for the VCU. More...
#include <stdint.h>#include <can.h>Go to the source code of this file.
Enumerations | |
| enum class | CarStatus : uint8_t { Init = 0 , Startin = 1 , Bussin = 2 , Drive = 3 } |
| Main car status state machine. More... | |
| enum class | PedalFault : uint8_t { None = 0x00 , DiffStart = 0x10 , DiffContinuing = 0x11 , DiffExceed100ms = 0x12 , DiffResolved = 0x19 , ThrottleLow = 0x20 , ThrottleHigh = 0x29 , BrakeLow = 0x30 , BrakeHigh = 0x39 } |
| Pedal fault status codes. More... | |
| enum class | BmsStatus : uint8_t { NoMsg = 0 , Waiting = 1 , Starting = 2 , Started = 3 , Unused = 4 } |
| BMS status. More... | |
| enum class | McpIndex : uint8_t { Motor = 0 , Bms = 1 , Datalogger = 2 } |
| MCP2515 instance indices. More... | |
| enum class | StatusCanId : canid_t { CarMsg = 0x693 , StaCarChangeMsg = 0x694 , BrakeMsg = 0x695 , BmsMsg = 0x696 , HallSensorMsg = 0x697 } |
| CAN message IDs for status and brake debug. More... | |
|
strong |
|
strong |
Main car status state machine.
Represents the current state of the car in the startup and drive sequence.
|
strong |
|
strong |
Pedal fault status codes.
Represents the current fault status related to pedal input.
|
strong |
CAN message IDs for status and brake debug.
Used for sending car status and brake messages over CAN bus.
| Enumerator | |
|---|---|
| CarMsg | Debug: car status message |
| StaCarChangeMsg | Debug: car status change message |
| BrakeMsg | Debug: brake status message |
| BmsMsg | Debug: BMS status message |
| HallSensorMsg | Debug: Hall sensor message |