panoptes.pocs.state.states.default package¶
Submodules¶
panoptes.pocs.state.states.default.analyzing module¶
panoptes.pocs.state.states.default.housekeeping module¶
panoptes.pocs.state.states.default.observing module¶
panoptes.pocs.state.states.default.parked module¶
State: parked.
Indicates the mount is parked. Based on run_once, retry policy, scheduler state, safety, and darkness, decides whether to proceed to housekeeping, wait and retry, or return to ready.
panoptes.pocs.state.states.default.parking module¶
State: parking.
Transition to safely park the system: clear current observation context, close the dome if present, and command the mount to park, then proceed to ‘parked’.
panoptes.pocs.state.states.default.pointing module¶
State: pointing.
Capture a short exposure, solve it, measure pointing error, optionally correct, then proceed to ‘tracking’.
panoptes.pocs.state.states.default.ready module¶
State: ready.
System has initialized successfully; wait for safe/dark conditions and then transition to ‘scheduling’ (or to ‘parking’ if dome open fails).
panoptes.pocs.state.states.default.scheduling module¶
State: scheduling.
Selects the next observable target from the scheduler and transitions to the proper next state (slewing, tracking, or parking) based on availability.
- panoptes.pocs.state.states.default.scheduling.on_enter(event_data)[source]¶
In the scheduling state we attempt to find a field using our scheduler. If field is found, make sure that the field is up right now (the scheduler should have taken care of this). If observable, set the mount to the field and calls start_slewing to begin slew.
If no observable targets are available, park the unit.
panoptes.pocs.state.states.default.sleeping module¶
State: sleeping.
Terminal state after a night of observing. If safe conditions persist but retry attempts are exhausted, stop the state loop; otherwise transition to ready and reset the observing run.
panoptes.pocs.state.states.default.slewing module¶
State: slewing.
Command the mount to slew to the target coordinates and transition to ‘pointing’ when complete. If slewing fails, transition toward parking.
panoptes.pocs.state.states.default.tracking module¶
State: tracking.
Fine-tune tracking (if configured) after slewing/pointing, then transition to ‘observing’. If tracking update is disabled, proceed directly to observing.