From 09897b6125bfc1fb81e7e299d6c6696b26c2c4ab Mon Sep 17 00:00:00 2001 From: smathis Date: Tue, 1 Jul 2025 10:03:20 +0200 Subject: [PATCH] Added node reset to doReset --- src/masterMacsAxis.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/masterMacsAxis.cpp b/src/masterMacsAxis.cpp index a28bb14..7f42a08 100644 --- a/src/masterMacsAxis.cpp +++ b/src/masterMacsAxis.cpp @@ -815,6 +815,13 @@ asynStatus masterMacsAxis::stop(double acceleration) { asynStatus masterMacsAxis::doReset() { + // Reset errors + asynStatus status = pC_->write(axisNo_, 16, ""); + if (status != asynSuccess) { + setAxisParamChecked(this, motorStatusProblem, true); + } + + // Reset the controller asynStatus status = pC_->write(axisNo_, 17, ""); if (status != asynSuccess) { setAxisParamChecked(this, motorStatusProblem, true);