Fixed bug where the driver might report the motor as being idle even though it is in state -6 (e.g. due to adjustments due to a tight deadband) after previously being in state 0

This commit is contained in:
2025-05-12 16:24:24 +02:00
parent 370aef212e
commit 4a1d6524a7

View File

@ -416,12 +416,7 @@ asynStatus turboPmacAxis::doPoll(bool *moving) {
case -6:
// Axis is stopping
// If the axis was already idle during the last poll, it is not moving
if (previousStatusDone == 0) {
*moving = true;
} else {
*moving = false;
}
*moving = true;
break;
case -5:
// Axis is deactivated