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