-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add the `park_dome` method in `MTCS`: - Ensures the dome is enabled before initiating the park sequence. - Flush events before issuing the remote dome park command. - Commands the dome to park and waits for the dome's azimuth motion state to reach `PARKED`. - Skips parking if the dome is already in the `PARKED` state. - Added the `wait_for_dome_state` method to periodically check the dome's `azMotion` event until it reaches the `PARKED` state with `inPosition=True`, or until the `park_dome_timeout` (initially set to 10 minutes/600 seconds) is reached. - Unit test: - Added a new unit test `test_park_dome` - Updated the `MTCSAsyncMock` class to simulate dome parking behavior by mocking the `evt_azMotion` event to simulate the dome reaching the `PARKED` state with `inPosition=True`.
- Loading branch information
Showing
3 changed files
with
136 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters