Fixed bug where the motor could be in state -6 and the driver would
interpret this as "not moving"
This commit is contained in:
@ -392,13 +392,7 @@ asynStatus turboPmacAxis::doPoll(bool *moving) {
|
|||||||
switch (axStatus) {
|
switch (axStatus) {
|
||||||
case -6:
|
case -6:
|
||||||
// Axis is stopping
|
// Axis is stopping
|
||||||
|
|
||||||
// If the axis was already idle during the last poll, it is not moving
|
|
||||||
if (previousStatusDone == 0) {
|
|
||||||
*moving = true;
|
*moving = true;
|
||||||
} else {
|
|
||||||
*moving = false;
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case -5:
|
case -5:
|
||||||
// Axis is deactivated
|
// Axis is deactivated
|
||||||
|
Reference in New Issue
Block a user