Updated error message
This commit is contained in:
+1
-1
Submodule sinqMotor updated: a84992b4cd...92c264d0f6
@@ -214,6 +214,11 @@ asynStatus turboPmacAxis::init() {
|
||||
&motorVmax, &motorVelocity, &motorAccel, &acoDelay,
|
||||
&counts_to_eu, &deadband_counts, &hasBeenHomed);
|
||||
|
||||
if (nvals != 8) {
|
||||
return pC_->couldNotParseResponse(command, response, axisNo_,
|
||||
__PRETTY_FUNCTION__, __LINE__);
|
||||
}
|
||||
|
||||
// The acoDelay is given in milliseconds -> Convert to seconds, rounded
|
||||
// up
|
||||
setOffsetMovTimeout(std::ceil(acoDelay / 1000.0));
|
||||
@@ -223,11 +228,6 @@ asynStatus turboPmacAxis::init() {
|
||||
// here to mm/s^2.
|
||||
motorAccel = motorAccel * 1000;
|
||||
|
||||
if (nvals != 7) {
|
||||
return pC_->couldNotParseResponse(command, response, axisNo_,
|
||||
__PRETTY_FUNCTION__, __LINE__);
|
||||
}
|
||||
|
||||
// Store these values in the parameter library
|
||||
status = setMotorPosition(motorPos);
|
||||
if (status != asynSuccess) {
|
||||
|
||||
Reference in New Issue
Block a user