Fixed bug
This commit is contained in:
@ -815,14 +815,16 @@ asynStatus masterMacsAxis::stop(double acceleration) {
|
||||
|
||||
asynStatus masterMacsAxis::doReset() {
|
||||
|
||||
asynStatus status = asynSuccess;
|
||||
|
||||
// Reset errors
|
||||
asynStatus status = pC_->write(axisNo_, 16, "");
|
||||
status = pC_->write(axisNo_, 16, "");
|
||||
if (status != asynSuccess) {
|
||||
setAxisParamChecked(this, motorStatusProblem, true);
|
||||
}
|
||||
|
||||
// Reset the controller
|
||||
asynStatus status = pC_->write(axisNo_, 17, "");
|
||||
status = pC_->write(axisNo_, 17, "");
|
||||
if (status != asynSuccess) {
|
||||
setAxisParamChecked(this, motorStatusProblem, true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user