feat(state-via-can): state transitions via can are forced to resync state across devices

This commit is contained in:
CarlWachter
2024-06-17 08:54:36 +02:00
committed by carlwachter
parent 69b5091c76
commit d028ecef74
5 changed files with 31 additions and 10 deletions

View File

@@ -42,10 +42,11 @@ namespace sta
* @param from The start 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 force If true, the state transition will be executed regardless of the current state.
*
* @ingroup tacos_api
*/
void setState(uint32_t from, uint32_t to, uint32_t lockout = 0);
void setState(uint32_t from, uint32_t to, uint32_t lockout = 0, bool force = false);
/**
* @brief Request a state transition after a given time has passed. Invalid state transitions will be dismissed.