Compare commits

..

3 Commits
1.6.1 ... 1.6.3

Author SHA1 Message Date
1d662ecd43 Use safe limit setter function from sinqMotor
Some checks failed
Test And Build / Lint (push) Failing after 3s
Test And Build / Build (push) Failing after 6s
2026-02-11 11:08:46 +01:00
bea68c807b Updated to new sinqMotor 1.6.0 version 2026-02-11 11:07:28 +01:00
01a04d3b24 Fixed of-by-one error
Some checks failed
Test And Build / Lint (push) Failing after 3s
Test And Build / Build (push) Failing after 8s
2026-02-03 14:05:12 +01:00
2 changed files with 6 additions and 4 deletions

View File

@@ -218,7 +218,7 @@ asynStatus turboPmacAxis::init() {
// here to mm/s^2. // here to mm/s^2.
motorAccel = motorAccel * 1000; motorAccel = motorAccel * 1000;
if (nvals != 8) { if (nvals != 7) {
return pC_->couldNotParseResponse(command, response, axisNo_, return pC_->couldNotParseResponse(command, response, axisNo_,
__PRETTY_FUNCTION__, __LINE__); __PRETTY_FUNCTION__, __LINE__);
} }
@@ -582,8 +582,10 @@ asynStatus turboPmacAxis::doPoll(bool *moving) {
getAxisParamChecked(this, limFromHardware, &limFromHardware); getAxisParamChecked(this, limFromHardware, &limFromHardware);
if (limFromHardware != 0) { if (limFromHardware != 0) {
setAxisParamChecked(this, motorHighLimitFromDriver, highLimit); status = setLimits(highLimit, lowLimit);
setAxisParamChecked(this, motorLowLimitFromDriver, lowLimit); if (status != asynSuccess) {
return status;
}
} }
status = setMotorPosition(currentPosition); status = setMotorPosition(currentPosition);