mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-12 01:25:59 +00:00
Removed waiting forever for state transitions
This commit is contained in:
parent
1c42cf1986
commit
69ea3a5542
@ -72,8 +72,9 @@ namespace sta
|
|||||||
transition.event = EventFlags::NORMAL;
|
transition.event = EventFlags::NORMAL;
|
||||||
transition.lockout = lockout;
|
transition.lockout = lockout;
|
||||||
|
|
||||||
// TODO: For how should we wait here?
|
// Try to add a state transition request to the queue. Don't wait if another
|
||||||
queue_.put(transition);
|
// thread is already requesting a state change.
|
||||||
|
queue_.put(transition, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Statemachine::requestTimedStateTransition(uint32_t from, uint32_t to, uint32_t millis, uint32_t lockout /* = 0 */)
|
void Statemachine::requestTimedStateTransition(uint32_t from, uint32_t to, uint32_t millis, uint32_t lockout /* = 0 */)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user