Skip to content

Commit

Permalink
In mtcs, add a check in move_p2p that the components are enabled …
Browse files Browse the repository at this point in the history
…while moving.
  • Loading branch information
tribeiro committed Nov 16, 2023
1 parent 4d10b6d commit 72f8f38
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions python/lsst/ts/observatory/control/maintel/mtcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1744,11 +1744,20 @@ async def move_p2p_azel(self, az: float, el: float, timeout: float = 120.0) -> N
"""

async with self.m1m3_booster_valve():
await self.rem.mtmount.cmd_moveToTarget.set_start(
azimuth=az,
elevation=el,
timeout=timeout,
tasks = [
asyncio.create_task(self.check_component_state(component))
for component in self.components_to_check()
]
tasks.append(
asyncio.create_task(
self.rem.mtmount.cmd_moveToTarget.set_start(
azimuth=az,
elevation=el,
timeout=timeout,
)
)
)
await self.process_as_completed(tasks)

async def move_p2p_radec(
self, ra: float, dec: float, timeout: float = 120.0
Expand Down

0 comments on commit 72f8f38

Please sign in to comment.