diff --git a/motorApp/NewportSrc/drvXPSAsyn.c b/motorApp/NewportSrc/drvXPSAsyn.c index 94da24c6..3975b861 100644 --- a/motorApp/NewportSrc/drvXPSAsyn.c +++ b/motorApp/NewportSrc/drvXPSAsyn.c @@ -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) {