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

Storage class for cc_pedal CAN message. More...

Public Member Functions

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

Public Attributes

uint32_t throttle_output
 
uint8_t brake_output
 

Detailed Description

Storage class for cc_pedal CAN message.

Member Function Documentation

◆ decode()

void decode ( const uint8_t *  data)
inline

Decode new CAN data and update the storage for cc_pedal.

Parameters
dataPointer to the CAN message to be decoded

◆ get_message_name()

std::string get_message_name ( ) const
inline

Get the message name: cc_pedal.

Returns
Returns the message name

Member Data Documentation

◆ brake_output

uint8_t brake_output

CAN signal 'brake_output' defined in *.yaml

◆ throttle_output

uint32_t throttle_output

CAN signal 'throttle_output' defined in *.yaml


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