Skip to content

Commit

Permalink
Add option to sleep between exposures
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Feb 7, 2024
1 parent eaba602 commit b7921a9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lvmguider/actor/commands/guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ def is_stopping(command: GuiderCommand):
is_flag=True,
help="Do one single iteration and exit.",
)
@click.option(
"--sleep",
type=float,
help="Sleep this number of seconds before taking another exposure.",
)
async def guide(
command: GuiderCommand,
ra: float,
Expand All @@ -75,6 +80,7 @@ async def guide(
guide_tolerance: float | None = None,
apply_corrections: bool = True,
one: bool = False,
sleep: float | None = None,
):
"""Starts the guide loop."""

Expand Down Expand Up @@ -126,6 +132,9 @@ async def guide(
if one:
break

if sleep:
await asyncio.sleep(sleep)

actor.status = GuiderStatus.IDLE
command.actor.guider = None

Expand Down

0 comments on commit b7921a9

Please sign in to comment.