Skip to content

Commit

Permalink
Add proper usages
Browse files Browse the repository at this point in the history
  • Loading branch information
elanaku committed Oct 22, 2024
1 parent be55ffb commit 31694f7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import yaml
from lsst.ts.observatory.control.maintel.comcam import ComCam, ComCamUsages
from lsst.ts.observatory.control.maintel.mtcs import MTCS
from lsst.ts.observatory.control.maintel.mtcs import MTCS, MTCSUsages
from lsst.ts.observatory.control.utils import RotType

try:
Expand Down Expand Up @@ -61,6 +61,7 @@ async def configure_tcs(self) -> None:
self.log.debug("Creating MTCS.")
self.mtcs = MTCS(
domain=self.domain,
intended_usage=MTCSUsages.StateTransition | MTCSUsages.Slew,
log=self.log,
)
await self.mtcs.start_task
Expand All @@ -73,7 +74,8 @@ async def configure_camera(self) -> None:
self.log.debug("Creating Camera.")
self.comcam = ComCam(
self.domain,
intended_usage=ComCamUsages.TakeImageFull,
intended_usage=ComCamUsages.TakeImageFull
| ComCamUsages.StateTransition,
log=self.log,
tcs_ready_to_take_data=self.mtcs.ready_to_take_data,
)
Expand Down

0 comments on commit 31694f7

Please sign in to comment.