Abstraction class to manage CAN communication for the supercap board. More...
#include <msg_handler.hpp>
Public Member Functions | |
| CANComm (FDCAN_HandleTypeDef *fdcan_) | |
| Constructor: sets up header configuration for outgoing messages. | |
| ~CANComm () | |
| Destructor (does nothing but defined for completeness). | |
| void | sendMessage () |
Sends the current supercap_msg_packet status over CAN. | |
Abstraction class to manage CAN communication for the supercap board.
This class handles CAN transmission of status messages and provides the scaffolding for receiving command/control messages via interrupt.
|
inline |
Constructor: sets up header configuration for outgoing messages.
| fdcan_ | Pointer to FDCAN handle. |
|
inline |
Destructor (does nothing but defined for completeness).
| void CANComm::sendMessage | ( | ) |
Sends the current supercap_msg_packet status over CAN.
Sends a CAN message containing supercap status.
Computes instantaneous chassis power, normalizes capacitor voltage into an 8-bit energy buffer estimate, and transmits it using FDCAN.