mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-08-06 09:37:34 +00:00
Added state publishing to TACOS state transition
This commit is contained in:
@@ -46,7 +46,7 @@ namespace sta
|
||||
*
|
||||
* @ingroup tacos_api
|
||||
*/
|
||||
void setState(uint32_t from, uint32_t to, uint32_t lockout = 0, bool force = false);
|
||||
void setState(uint32_t from, uint32_t to, uint32_t lockout = 0, bool force = false, bool publish = true);
|
||||
|
||||
/**
|
||||
* @brief Request a state transition after a given time has passed. Invalid state transitions will be dismissed.
|
||||
@@ -58,7 +58,7 @@ namespace sta
|
||||
*
|
||||
* @ingroup tacos_api
|
||||
*/
|
||||
void setStateTimed(uint32_t from, uint32_t to, uint32_t millis, uint32_t lockout = 0);
|
||||
void setStateTimed(uint32_t from, uint32_t to, uint32_t millis, uint32_t lockout = 0, bool publish = true);
|
||||
|
||||
/**
|
||||
* @brief Register a new thread to be run by TACOS.
|
||||
@@ -97,13 +97,13 @@ namespace sta
|
||||
*
|
||||
* @param from The state we want to transition from.
|
||||
* @param to The state we want to transition to.
|
||||
* @param lockout An optional timer blocking state transition for a given time.
|
||||
* @param timeout An optional timeout for the CAN communication
|
||||
*
|
||||
* @return bool True if the message was sent successfully.
|
||||
*
|
||||
* @ingroup tacos_api
|
||||
*/
|
||||
bool publishState(uint32_t from, uint32_t to, uint32_t lockout = 0);
|
||||
bool publishState(uint32_t from, uint32_t to, uint32_t timeout = 0);
|
||||
#endif // STA_TACOS_CAN_BUS_ENABLED
|
||||
} // namespace tacos
|
||||
}
|
||||
|
Reference in New Issue
Block a user