mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/TACOS.git
synced 2025-09-28 18:57:33 +00:00
fix(statemachine): perform manager roles and call callback when transition is forced
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user