panoptes.pocs.state.states.default package

Submodules

panoptes.pocs.state.states.default.analyzing module

panoptes.pocs.state.states.default.analyzing.on_enter(event_data)[source]

panoptes.pocs.state.states.default.housekeeping module

panoptes.pocs.state.states.default.housekeeping.on_enter(event_data)[source]

panoptes.pocs.state.states.default.observing module

panoptes.pocs.state.states.default.observing.on_enter(event_data)[source]

Take an observation image.

This state is responsible for taking the actual observation image.

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.parked.on_enter(event_data)[source]

Handle transition into the parked state.

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.parking.on_enter(event_data)[source]

Handle transition into the parking state.

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.pointing.on_enter(event_data)[source]

Pointing State

Take 30 second exposure and plate-solve to get the pointing error

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.ready.on_enter(event_data)[source]

Once in the ready state our unit has been initialized successfully. The next step is to schedule something for the night.

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.sleeping.on_enter(event_data)[source]

Handle transition into the sleeping state.

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.slewing.on_enter(event_data)[source]

Once inside the slewing state, set the mount slewing.

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.

panoptes.pocs.state.states.default.tracking.on_enter(event_data)[source]

The unit is tracking the target. Proceed to observations.

Module contents