forked from epics_driver_modules/motorBase
motor: added check for zero acceleration when doing a normal move in the XPS driver. This can happen if in the motor record VELO=VBAS. The move will fail if a zero acceleration is sent to the controller. So in the case of a zero acceleration I ignore it and use the controller value.
This commit is contained in:
@@ -927,10 +927,11 @@ static int motorAxisMove(AXIS_HDL pAxis, double position, int relative,
|
||||
return MOTOR_AXIS_ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
status = PositionerSGammaParametersSet(pAxis->pollSocket,
|
||||
pAxis->positionerName,
|
||||
max_velocity*pAxis->stepSize,
|
||||
acceleration*pAxis->stepSize,
|
||||
((acceleration!=0) ? acceleration*pAxis->stepSize : pAxis->accel),
|
||||
pAxis->minJerkTime,
|
||||
pAxis->maxJerkTime);
|
||||
if (status != 0) {
|
||||
|
||||
Reference in New Issue
Block a user