Improved status reporting
This commit is contained in:
@ -926,10 +926,12 @@ asynStatus pmacV3Axis::getAxisStatus(bool *moving) {
|
|||||||
cmdStatus, command, response);
|
cmdStatus, command, response);
|
||||||
updateMsgTxtFromDriver("Cannot read Axis position and status");
|
updateMsgTxtFromDriver("Cannot read Axis position and status");
|
||||||
}
|
}
|
||||||
|
|
||||||
pmacV3Controller *p3C_ = (pmacV3Controller *)pC_;
|
pmacV3Controller *p3C_ = (pmacV3Controller *)pC_;
|
||||||
IsEnable = axStat != -3;
|
IsEnable = axStat != -3;
|
||||||
asynStatus st = setIntegerParam(p3C_->axisEnabled_, axStat >= 0);
|
printf("axis %d: position=%lf axStat=%d IsEnable=%d\n", axisNo_, position,
|
||||||
|
axStat, IsEnable);
|
||||||
|
|
||||||
|
asynStatus st = setIntegerParam(p3C_->axisEnabled_, IsEnable);
|
||||||
cmdStatus = cmdStatus > st ? cmdStatus : st;
|
cmdStatus = cmdStatus > st ? cmdStatus : st;
|
||||||
|
|
||||||
int direction = 0;
|
int direction = 0;
|
||||||
|
Reference in New Issue
Block a user