mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-06-10 16:45:59 +00:00
fix(statemachine): perform manager roles and call callback when transition is forced
This commit is contained in:
parent
743e9205e6
commit
648fa38667
@ -130,6 +130,16 @@ namespace sta
|
|||||||
{
|
{
|
||||||
setLockoutTimer(lockout);
|
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