set commanded speed to 0 during off transition

This commit is contained in:
Marius Eggert 2023-04-05 16:21:38 +02:00
parent 4ed112d019
commit 78cc0fc52d

View File

@ -55,6 +55,10 @@ void RwHandler::doShutDown() {
PoolReadGuard pg(&tmDataset); PoolReadGuard pg(&tmDataset);
tmDataset.setValidity(false, true); tmDataset.setValidity(false, true);
} }
{
PoolReadGuard pg(&rwSpeedActuationSet);
rwSpeedActuationSet.setRwSpeed(0, 10);
}
// The power switch is handled by the assembly, so we can go off here directly. // The power switch is handled by the assembly, so we can go off here directly.
setMode(MODE_OFF); setMode(MODE_OFF);
} }