Skip to content

Commit

Permalink
Add log messages to az overslew and fixup value.
Browse files Browse the repository at this point in the history
  • Loading branch information
edennihy committed Nov 16, 2023
1 parent ebad8ee commit 4d10b6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/lsst/ts/observatory/control/base_tcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,12 @@ async def slew_icrs(
break
else:
if self._overslew_az:
overslew_az = 2.0 * 3600.0 * np.cos(alt_az.alt.rad)
self.log.info(f"Slewing az past target {overslew_az}")
await asyncio.sleep(self.tel_settle_time)
await self.offset_azel(az=2.0 * 3600.0 * np.cos(alt_az.alt), el=0)
await self.offset_azel(az=overslew_az, el=0, relative=False)
await asyncio.sleep(self.tel_settle_time)
await self.offset_azel(az=-2.0 * 3600.0 * np.cos(alt_az.alt), el=0)
await self.offset_azel(az=0, el=0, relative=False)
break

if slew_exception is not None:
Expand Down

0 comments on commit 4d10b6d

Please sign in to comment.