Added AMOR detector tower special pmac motors: working now

This commit is contained in:
2023-07-07 13:54:21 +02:00
parent 8a6441927a
commit f1a17bc295
5 changed files with 396 additions and 3 deletions

View File

@@ -394,7 +394,12 @@ asynStatus NanotecAxis::poll(bool *moving)
pPtr = strchr(reply,'C');
pPtr++;
posVal = atoi(pPtr);
if(pPtr){
posVal = atoi(pPtr);
} else {
errlogPrintf("Invalid response %s for #C received for axis %d\n", reply, axisNo_);
return asynError;
}
//errlogPrintf("Axis %d, reply %s, position %d\n", axisNo_, reply, posVal);
setDoubleParam(pC_->motorPosition_, (double)posVal);
@@ -408,7 +413,12 @@ asynStatus NanotecAxis::poll(bool *moving)
pPtr = strchr(reply,'$');
pPtr++;
statVal = atoi(pPtr);
if(pPtr) {
statVal = atoi(pPtr);
} else {
errlogPrintf("Invalid response %s for #$ received for axis %d\n", reply, axisNo_);
return asynError;
}
//errlogPrintf("Axis %d, reply %s, statVal = %d\n",
// axisNo_, reply, statVal);