From c92427ced4f5e86d3a255c509ebfd2db4e65580f Mon Sep 17 00:00:00 2001 From: Te-Wei Tsai Date: Fri, 13 Dec 2024 12:56:55 -0300 Subject: [PATCH] Update the error code of rotator. --- doc/news/interface_changes/DM-47994.mtrotator.rst | 1 + python/lsst/ts/xml/enums/MTRotator.py | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 doc/news/interface_changes/DM-47994.mtrotator.rst diff --git a/doc/news/interface_changes/DM-47994.mtrotator.rst b/doc/news/interface_changes/DM-47994.mtrotator.rst new file mode 100644 index 00000000..7637fd3d --- /dev/null +++ b/doc/news/interface_changes/DM-47994.mtrotator.rst @@ -0,0 +1 @@ +Update the ErrorCode enum in MTRotator.py. diff --git a/python/lsst/ts/xml/enums/MTRotator.py b/python/lsst/ts/xml/enums/MTRotator.py index b8c81552..83d479f4 100644 --- a/python/lsst/ts/xml/enums/MTRotator.py +++ b/python/lsst/ts/xml/enums/MTRotator.py @@ -109,8 +109,18 @@ class ErrorCode(enum.IntEnum): controller. * NO_CONFIG: The CSC did not receive configuration from the low-level controller shortly after connecting to it. + * NO_NEW_CCW_TELEMETRY: The CSC did not receive new telemetry from the + camera cable wrapper (CCW) before the timeout. + * OLD_CCW_TELEMETRY: The CCW telemetry was too old. + * CCW_FOLLOWING_ERROR: The CCW did not follow the rotator's movement. + * NO_NEW_TRACK_COMMAND: The CSC did not receive a new track command before + the timeout. """ CONTROLLER_FAULT = 1 CONNECTION_LOST = 2 NO_CONFIG = 3 + NO_NEW_CCW_TELEMETRY = 4 + OLD_CCW_TELEMETRY = 5 + CCW_FOLLOWING_ERROR = 6 + NO_NEW_TRACK_COMMAND = 7