Fixed wrong reset of motorStatusHomed flag
Test And Build / Lint (push) Successful in 5s
Test And Build / Build (push) Successful in 6s

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:
2026-07-15 11:03:57 +02:00
parent 95bc899114
commit 3631064469
-2
View File
@@ -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;