From 6038206a73c6ad26f28c00cead5bfffd387f0406 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Fri, 29 Nov 2024 14:18:11 -0700 Subject: [PATCH] In maintel/mtcs.py, update wait_for_rotator_inposition to use a lower race condition timeout and to not await any settling time. --- python/lsst/ts/observatory/control/maintel/mtcs.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/python/lsst/ts/observatory/control/maintel/mtcs.py b/python/lsst/ts/observatory/control/maintel/mtcs.py index 79f32b24..6467bb66 100644 --- a/python/lsst/ts/observatory/control/maintel/mtcs.py +++ b/python/lsst/ts/observatory/control/maintel/mtcs.py @@ -138,6 +138,10 @@ def __init__( # used to check the in position event race condition for # the hexapod when checking if it is ready to take data. self.hexapod_ready_to_take_data_timeout = 0.5 + # Similar to the mtmount_race_condition_timeout, this is + # used to check the in position event race condition for + # the rotator when checking if it is in position. + self.mtrotator_race_condition_timeout = 1.0 self.tel_park_el = 80.0 self.tel_park_az = 0.0 @@ -585,8 +589,9 @@ async def wait_for_rotator_inposition( return await self._handle_in_position( self.rem.mtrotator.evt_inPosition, timeout=timeout, - settle_time=self.tel_settle_time, + settle_time=0.0, component_name="MTRotator", + race_condition_timeout=self.mtrotator_race_condition_timeout, ) except asyncio.TimeoutError: self.log.warning("MTRotator time-out getting into position. Continuing.")