Give AssemblyBase more functionality: Support one-by-one commanding for childrend instead of sending all mode messages on one shot

This commit is contained in:
spahr@ksat-stuttgart.de 2025-04-14 00:06:34 +02:00
parent 297ec261ce
commit b13b5b456d

@ -92,10 +92,15 @@ void AssemblyBase::handleChildrenTransition() {
if (commandsOutstanding <= 0) {
switch (internalState) {
case STATE_NEED_SECOND_STEP:
{
internalState = STATE_SECOND_STEP;
commandChildren(targetMode, targetSubmode);
ReturnValue_t result = commandChildren(targetMode, targetSubmode);
if(result == NEED_SECOND_STEP) {
internalState = STATE_NEED_SECOND_STEP;
}
return;
case STATE_OVERWRITE_HEALTH: {
}
case STATE_OVERWRITE_HEALTH: {
internalState = STATE_SINGLE_STEP;
ReturnValue_t result = commandChildren(mode, submode);
if (result == NEED_SECOND_STEP) {