- Connections write timeouts were incorrectly handled in asynnetc. Fixed.
- Implemented the desired run/drive behaviour: drive waits for what it started run starts, and success waits for everything to finish. This required changes to a lot of files. - Fixed a bug in remob which supressed required messages
This commit is contained in:
6
motor.c
6
motor.c
@ -311,7 +311,7 @@ static int statusRunTo(pMotor self, SConnection * pCon)
|
||||
if (self->retryCount >= ObVal(self->ParArray, POSCOUNT)) {
|
||||
snprintf(pBueffel, 255, "ERROR: aborting motor %s after %d retries",
|
||||
self->name, self->retryCount);
|
||||
SCWrite(pCon, pBueffel, eError);
|
||||
SCWrite(pCon, pBueffel, eLogError);
|
||||
return HWFault;
|
||||
}
|
||||
if (SCGetInterrupt(pCon) != eContinue) {
|
||||
@ -320,7 +320,7 @@ static int statusRunTo(pMotor self, SConnection * pCon)
|
||||
self->retryCount++;
|
||||
snprintf(pBueffel, 255, "WARNING: restarting %s, %d time",
|
||||
self->name, self->retryCount);
|
||||
SCWrite(pCon, pBueffel, eWarning);
|
||||
SCWrite(pCon, pBueffel, eLog);
|
||||
self->pDriver->RunTo(self->pDriver, self->fTarget);
|
||||
return HWBusy;
|
||||
}
|
||||
@ -345,7 +345,7 @@ static int checkPosition(pMotor self, SConnection * pCon)
|
||||
}
|
||||
snprintf(pBueffel, 131, "WARNING: %s off position by %f",
|
||||
self->name, absf(fHard - self->fTarget));
|
||||
SCWrite(pCon, pBueffel, eWarning);
|
||||
SCWrite(pCon, pBueffel, eLog);
|
||||
status = statusRunTo(self, pCon);
|
||||
return status;
|
||||
}
|
||||
|
Reference in New Issue
Block a user