Updated dependency turboPmac to 0.15.1

This commit is contained in:
2025-05-15 14:56:56 +02:00
parent 16ee667963
commit 4765b59ee5
3 changed files with 24 additions and 1 deletions

View File

@ -98,6 +98,8 @@ class detectorTowerAngleAxis : public turboPmacAxis {
* @brief Overwrite the `reset` function so it doesn't do fast polls
* afterwards.
*
* The
*
* @return asynStatus
*/
asynStatus reset() { return doReset(); }

View File

@ -149,6 +149,27 @@ asynStatus detectorTowerController::writeInt32(asynUser *pasynUser,
return sAxis->angleAxis()->toggleWorkingChangerState(value);
}
}
/*
Due to a bug which is currently not understood, the reset has to be handled
here rather than in sinqController.
*/
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);
}