Selene positions do not need factor *1000

This commit is contained in:
michele-brambilla
2020-02-19 15:39:23 +01:00
parent c4fe45c0cb
commit a25f8cabb9

View File

@ -726,13 +726,15 @@ asynStatus SeleneController::writeFloat64(asynUser *pasynUser, epicsFloat64 valu
// TODO: somethign is really shitty here: lowLimit and highLimit cannot be on the command
if (function == motorLowLimit_) {
sprintf(command, "Q%d54=%d", pAxis->axisNo_, (int)(value/pAxis->scale_/MULT));
sprintf(command, "Q%d54=%d", pAxis->axisNo_, (int)(value/MULT));
// sprintf(command, "Q%d54=%d", pAxis->axisNo_, (int)(value/pAxis->scale_/MULT));
asynPrint(this->pasynUserSelf, ASYN_TRACE_FLOW,
"%s: Setting low limit on controller %s, axis %d to %f\n",
functionName, portName, pAxis->axisNo_, value);
errlogPrintf("Setting low limit of axis %d to %f, command = %s\n", pAxis->axisNo_, value, command);
} else if (function == motorHighLimit_) {
sprintf(command, "Q%d53=%d", pAxis->axisNo_, (int)(value/pAxis->scale_/MULT));
sprintf(command, "Q%d53=%d", pAxis->axisNo_, (int)(value/MULT));
// sprintf(command, "Q%d53=%d", pAxis->axisNo_, (int)(value/pAxis->scale_/MULT));
asynPrint(this->pasynUserSelf, ASYN_TRACE_FLOW,
"%s: Setting high limit on controller %s, axis %d to %f\n",
functionName, portName, pAxis->axisNo_, value);