mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-10 00:25:59 +00:00
fix(statemachine): perform manager roles and call callback when transition is forced
This commit is contained in:
parent
ca3f303293
commit
80ae4502b6
@ -130,6 +130,16 @@ namespace sta
|
||||
{
|
||||
setLockoutTimer(lockout);
|
||||
}
|
||||
|
||||
// get heap stats at the end of the state transition
|
||||
HeapStats_t stats;
|
||||
vPortGetHeapStats(&stats);
|
||||
|
||||
// Execute the user-defined callback.
|
||||
sta::tacos::onStateTransition(transition.from, transition.to, transition.lockout);
|
||||
|
||||
// Start all new tasks and stop all the tasks that aren't supposed to be running.
|
||||
updateThreads();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user