Reduce polling, se MsgTxt if move when disabled
This commit is contained in:
@@ -364,11 +364,8 @@ asynStatus pmacController::writeFloat64(asynUser *pasynUser, epicsFloat64 value)
|
||||
|
||||
/* Set the parameter and readback in the parameter library. */
|
||||
status = pAxis->setDoubleParam(function, value);
|
||||
printf("%s: pAxis->setDoubleParam(%d, %lf)\n", functionName, function, value);
|
||||
|
||||
if (function == motorPosition_) {
|
||||
printf("%s: pAxis->setDoubleParam(%d, %lf)\n", functionName, function, value);
|
||||
}
|
||||
// if (function == motorPosition_) {
|
||||
// /*Set position on motor axis.*/
|
||||
// epicsInt32 position = (epicsInt32) floor(value*32/pAxis->scale_ + 0.5);
|
||||
|
||||
@@ -841,19 +838,16 @@ asynStatus pmacV3Controller::writeInt32(asynUser *pasynUser, epicsInt32 value) {
|
||||
asynPrint(this->pasynUserSelf, ASYN_TRACE_FLOW,
|
||||
"%s: Enable axis on controller %s, axis %d enable=%d\n",
|
||||
functionName, portName, pAxis->axisNo_, value);
|
||||
//errlogPrintf("Enable axis %d: %d, command = %s\n", pAxis->axisNo_, value, command);
|
||||
if(value){
|
||||
pAxis->updateMsgTxtFromDriver("");
|
||||
}
|
||||
}
|
||||
|
||||
// Execute the command.
|
||||
if (command[0] != 0 && status == asynSuccess) {
|
||||
status = lowLevelWriteRead(pAxis->axisNo_, command, response);
|
||||
printf("%s: lowLevelWriteRead: success=%d\n (function == enableAxis_? %d)\n",functionName, status==asynSuccess, function == enableAxis_);
|
||||
}
|
||||
|
||||
// Call base class method
|
||||
// This will handle callCallbacks even if the function was handled here.
|
||||
// status = asynMotorController::writeInt32(pasynUser, value);
|
||||
|
||||
return pmacController::writeInt32(pasynUser, value);
|
||||
}
|
||||
|
||||
@@ -878,7 +872,6 @@ asynStatus pmacV3Controller::readInt32(asynUser *pasynUser, epicsInt32 *value) {
|
||||
*value = strtol(response, NULL, 10);
|
||||
|
||||
int st = setIntegerParam(axisEnabled_, *value);
|
||||
// printf("%s: setIntegerParam(%d, %d) -> success=%d\n", functionName,axisEnabled_, *value, st==asynSuccess);
|
||||
callParamCallbacks();
|
||||
}
|
||||
return pmacController::readInt32(pasynUser, value);
|
||||
|
||||
Reference in New Issue
Block a user