Skip to content

Commit

Permalink
Use /screen flag for LCO slews
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Jan 30, 2024
1 parent 5acb5b2 commit 2d0ac8f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## Next version

### ✨ Improved

* Retry lamps at LCO to deal with cases when `TCS_FF` fails.
* Use `/screen` flag for LCO slews.


## 1.0.1 - January 15, 2024

### ✨ Improved
Expand Down
13 changes: 3 additions & 10 deletions src/hal/macros/goto_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,8 +681,8 @@ async def _slew_telescope(self, screen: bool = False):
ra, dec, pa = self._get_pointing()

command_string = f"target {ra}, {dec} /posAngle={pa:.3f}"
# if screen:
# command_string += " /screen"
if screen:
command_string += " /screen"

self.command.info("Slewing to field RA/Dec/PA.")

Expand All @@ -694,15 +694,8 @@ async def _slew_telescope(self, screen: bool = False):
async def _remove_screen(self):
"""Ensures the screen is not in front of the telescope."""

# HACK: for now, if we the screen is in front of the telescope we wait 25
# seconds to give observers time to remove it.
if self.screen_on:
self.command.warning("Waiting for FFS to be removed.")
await asyncio.sleep(25)
self.screen_on = False

# if self.screen_on:
# await self._slew_telescope(False)
await self._slew_telescope(False)

async def _guide_preconditions(self, stage: str):
"""Ensure the system is ready to guide/acquire."""
Expand Down

0 comments on commit 2d0ac8f

Please sign in to comment.