From 5dd5a26243fa4f32c744ec4c8440f2f2b573e616 Mon Sep 17 00:00:00 2001 From: smathis Date: Fri, 16 May 2025 16:33:49 +0200 Subject: [PATCH] Removed unnecessary code (bug in sinqMotor has been found) --- src/detectorTowerController.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/detectorTowerController.cpp b/src/detectorTowerController.cpp index 7130023..82675d0 100644 --- a/src/detectorTowerController.cpp +++ b/src/detectorTowerController.cpp @@ -150,31 +150,6 @@ asynStatus detectorTowerController::writeInt32(asynUser *pasynUser, } } - /* - Due to a bug which is currently not understood, the reset has to be handled - here rather than using the default implementation in sinqController. Piping - the motor reset request to sinqController causes segfaults. It might be due - to the fact that the default `reset` implementation of sinqAxis locks the - controller in order to perform some fast polls and that for some reason this - behaviour cannot be overwritten even by providing custom `reset` methods for - all three axes. - */ - // if (pasynUser->reason == motorReset_) { - // detectorTowerAngleAxis *aAxis = getDetectorTowerAngleAxis(pasynUser); - // if (aAxis != nullptr) { - // return aAxis->reset(); - // } - // detectorTowerLiftAxis *lAxis = getDetectorTowerLiftAxis(pasynUser); - // if (lAxis != nullptr) { - // return lAxis->reset(); - // } - // detectorTowerSupportAxis *sAxis = - // getDetectorTowerSupportAxis(pasynUser); - // if (sAxis != nullptr) { - // return sAxis->reset(); - // } - // } - return turboPmacController::writeInt32(pasynUser, value); }