Skip to content

Commit

Permalink
enabling m1m3 balance system if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
iglesu committed Dec 11, 2024
1 parent 5e2d967 commit 3897321
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/lsst/ts/standardscripts/maintel/home_both_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

__all__ = ["HomeBothAxes"]

import asyncio
import time

import yaml
Expand Down Expand Up @@ -57,7 +58,6 @@ def __init__(self, index, add_remotes: bool = True):

self.disable_m1m3_force_balance = False
self.home_both_axes_timeout = 300.0 # timeout to home both MTMount axes.

self.warn_wait = 10.0
self.mtcs = None

Expand Down Expand Up @@ -113,3 +113,8 @@ async def run(self):
elapsed_time = end_time - start_time

self.log.info(f"Homing both axes took {elapsed_time:.2f} seconds")

if not self.disable_m1m3_force_balance:
self.log.info("Enabling M1M3 balance system.")
await asyncio.sleep(self.warn_wait)
await self.mtcs.enable_m1m3_balance_system()

0 comments on commit 3897321

Please sign in to comment.