Midnight Sun Firmware
Loading...
Searching...
No Matches
cc_info

Storage class for cc_info CAN message. More...

Public Member Functions

void decode (const uint8_t *data)
 Decode new CAN data and update the storage for cc_info. More...
 
nlohmann::json to_json () const
 Create a JSON object for cc_info using the storage.
 
std::string get_message_name () const
 Get the message name: cc_info. More...
 

Public Attributes

uint32_t target_velocity
 
uint8_t drive_state
 
uint8_t cruise_control
 
uint8_t regen_braking
 
uint8_t hazard_enabled
 

Detailed Description

Storage class for cc_info CAN message.

Member Function Documentation

◆ decode()

void decode ( const uint8_t *  data)
inline

Decode new CAN data and update the storage for cc_info.

Parameters
dataPointer to the CAN message to be decoded

◆ get_message_name()

std::string get_message_name ( ) const
inline

Get the message name: cc_info.

Returns
Returns the message name

Member Data Documentation

◆ cruise_control

uint8_t cruise_control

CAN signal 'cruise_control' defined in *.yaml

◆ drive_state

uint8_t drive_state

CAN signal 'drive_state' defined in *.yaml

◆ hazard_enabled

uint8_t hazard_enabled

CAN signal 'hazard_enabled' defined in *.yaml

◆ regen_braking

uint8_t regen_braking

CAN signal 'regen_braking' defined in *.yaml

◆ target_velocity

uint32_t target_velocity

CAN signal 'target_velocity' defined in *.yaml


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