mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-06 01:37:33 +00:00
feat: handleSysMessage checks allows user to overwrite CAN system behavior
This commit is contained in:
@@ -111,10 +111,17 @@ namespace sta
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Callback function for handling received messages. Intended for state transitions.
|
||||
*/
|
||||
* @brief Handle system messages received over the CAN bus. Called as soon as a message is received. If
|
||||
* the message is a system message, it will be handled here. If the message is not a system message, it will be
|
||||
* passed to the appropriate thread's queue.
|
||||
*
|
||||
* @param header The header of the received message.
|
||||
* @param payload The payload of the received message.
|
||||
*
|
||||
* @return True if the message was a system message.
|
||||
*/
|
||||
STA_WEAK
|
||||
void handleSysMessage(CanMsgHeader & header, uint8_t * payload);
|
||||
bool handleSysMessage(CanMsgHeader & header, uint8_t * payload);
|
||||
|
||||
} /* namespace tacos */
|
||||
|
||||
|
Reference in New Issue
Block a user