-
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` to park the dome. This includes: - Ensuring the dome is enabled before initiating the park sequence. - Commanding the dome to park and waiting for the dome's azimuth motion state to reach `PARKED`. - Added a polling mechanism to periodically check the dome's `azMotion` event until it reaches the `PARKED` state or a timeout occurs. - Raised an error if the dome fails to park within the timeout window. - Updated the `MTCSAsyncMock` class to simulate dome parking behavior: - Mocked the `evt_azMotion` event to simulate the dome reaching the `PARKED` state with `inPosition=True`. - Added mocking for the `cmd_park` command to simulate a dome park action. - Added a new unit test `test_park_dome` - Asserted that the `evt_azMotion` event is awaited and reaches the `PARKED` state with `inPosition=True`.
- Loading branch information
Showing
3 changed files
with
92 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