Fixed wrong reset of motorStatusHomed flag
The previous code wrongfully resetted the motorStatusHomed flag when starting a movement / homing maneuver. This change corrects that behaviour - motorStatusHomed should only be set to false by the motor controller when it explicitly knows the axis to be unhomed (avoid false positives!).
This commit is contained in:
@@ -367,7 +367,6 @@ asynStatus sinqAxis::move(double position, int relative, double minVelocity,
|
||||
|
||||
// Since the move command was successfull, we assume that the motor has
|
||||
// started its movement.
|
||||
setAxisParamChecked(this, motorStatusHomed, false);
|
||||
setAxisParamChecked(this, motorStatusAtHome, false);
|
||||
|
||||
// Needed for adaptive polling
|
||||
@@ -398,7 +397,6 @@ asynStatus sinqAxis::home(double minVelocity, double maxVelocity,
|
||||
if (status == asynSuccess) {
|
||||
|
||||
setAxisParamChecked(this, motorStatusHome, true);
|
||||
setAxisParamChecked(this, motorStatusHomed, false);
|
||||
setAxisParamChecked(this, motorStatusAtHome, false);
|
||||
pSinqA_->wasMoving = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user