AstroHuntsman / huntsman-pocs

POCS on the Huntsman Telescope
MIT License
7 stars 8 forks source link

Dome shutter will open and close repeatedly between startup horizon (-10deg) and flat horizon (-5deg) #556

Closed fergusL closed 1 year ago

fergusL commented 2 years ago

In the morning, POCS will begin starting itself up when the startup horizon is reached (-10deg) but it will have nothing to do until the flat horizon (-5deg). While we could simply adjust the startup horizon to be closer to the flat horizon, it would be better to change things so that weather/scheduling checks are performed before any attempts to open the shutter (otherwise this could drain the shutter battery).

Logs demonstrating the issue are shown below:

S 06-27 07:56:04.253 Unit says: Entering housekeeping state from the parked state. 
S 06-27 07:56:04.922 Unit says: Recording all the data for the night (not really yet! TODO!!!).
I 06-27 07:56:04.966 Removing empty directories in images directory. 
I 06-27 07:56:05.238 Removing empty directories in archive directory.
S 06-27 07:56:05.283 Unit says: Shutting down for the night, going to turn off the camera cooling
S 06-27 07:56:05.433 Unit says: Ok, looks like I'm done for the day. Time to get some sleep! 
S 06-27 07:56:05.436 Unit says: Finished with the housekeeping state. The next state is sleeping.
S 06-27 07:56:05.439 Finished with housekeeping
I 06-27 07:56:05.488 Run loop: 'housekeeping' -> 'sleeping'
I 06-27 07:56:05.725 Going to 'sleeping' 
S 06-27 07:56:05.730 Unit says: Entering sleeping state from the housekeeping state. 
S 06-27 07:56:06.447 Unit says: Resetting observing run from sleeping state. 
S 06-27 07:56:06.573 Unit says: Finished with the sleeping state. The next state is starting.
S 06-27 07:56:06.576 Finished with sleeping
I 06-27 07:56:06.618 Run loop: 'sleeping' -> 'starting'
I 06-27 07:56:06.833 Going to 'starting' 
S 06-27 07:56:06.838 Unit says: Entering starting state from the sleeping state. 
I 06-27 07:56:07.461 Preparing 9 cameras.
I 06-27 07:56:07.462 Preparing 9 cameras.
S 06-27 07:56:08.661 Unit says: Finished with the starting state. The next state is scheduling.
S 06-27 07:56:08.662 Finished with starting
I 06-27 07:56:08.707 Run loop: 'starting' -> 'scheduling'
I 06-27 07:56:09.040 Going to 'scheduling' 
S 06-27 07:56:09.289 Unit says: Opening the dome before entering the scheduling state. 
I 06-27 07:56:09.292 Opening dome
I 06-27 07:56:09.294 Opening dome shutter. 
S 06-27 07:56:39.329 Unit says: Entering scheduling state from the starting state. 
S 06-27 07:56:40.428 Unit says: Nothing to schedule. Going to parking. 
S 06-27 07:56:40.431 Unit says: Finished with the scheduling state. The next state is parking. 
S 06-27 07:56:40.433 Finished with scheduling
I 06-27 07:56:40.478 Run loop: 'scheduling' -> 'parking' 
I 06-27 07:56:40.728 Going to 'parking'
S 06-27 07:56:40.734 Unit says: Entering parking state from the scheduling state.
S 06-27 07:56:41.468 Unit says: Parking Huntsman. 
I 06-27 07:56:41.470 Setting new observation to None
I 06-27 07:56:41.473 Closed dome 
I 06-27 07:56:41.476 Closing dome shutter. 
S 06-27 07:57:13.515 Unit says: I'm takin' it on home and then parking.
I 06-27 07:58:53.338 Initializing panoptes.pocs.mount.bisque mount 
W 06-27 07:58:53.340 TheSkyX requires location to be set in the application
I 06-27 07:58:53.344 Mount initialized: True 
S 06-27 08:00:15.756 Unit says: Finished with the parking state. The next state is parked. 
S 06-27 08:00:15.762 Finished with parking
I 06-27 08:00:15.817 Run loop: 'parking' -> 'parked' 
I 06-27 08:00:16.078 Going to 'parked' 
S 06-27 08:00:16.086 Unit says: Entering parked state from the parking state.
S 06-27 08:00:16.782 Unit says: I'm parked now. Phew.
S 06-27 08:00:16.785 Unit says: Finished with the parked state. The next state is housekeeping.
S 06-27 08:00:16.788 Finished with parked
I 06-27 08:00:16.828 Run loop: 'parked' -> 'housekeeping'
I 06-27 08:00:17.057 Going to 'housekeeping' 
S 06-27 08:00:17.067 Unit says: Entering housekeeping state from the parked state. 
S 06-27 08:00:17.749 Unit says: Recording all the data for the night (not really yet! TODO!!!).
I 06-27 08:00:17.804 Removing empty directories in images directory. 
I 06-27 08:00:18.075 Removing empty directories in archive directory.
S 06-27 08:00:18.117 Unit says: Shutting down for the night, going to turn off the camera cooling
S 06-27 08:00:18.462 Unit says: Ok, looks like I'm done for the day. Time to get some sleep! 
S 06-27 08:00:18.463 Unit says: Finished with the housekeeping state. The next state is sleeping.
S 06-27 08:00:18.465 Finished with housekeeping
I 06-27 08:00:18.506 Run loop: 'housekeeping' -> 'sleeping'
I 06-27 08:00:18.881 Going to 'sleeping' 
S 06-27 08:00:18.895 Unit says: Entering sleeping state from the housekeeping state. 
S 06-27 08:00:19.675 Unit says: Resetting observing run from sleeping state. 
S 06-27 08:00:19.833 Unit says: Finished with the sleeping state. The next state is starting.
S 06-27 08:00:19.835 Finished with sleeping
I 06-27 08:00:19.876 Run loop: 'sleeping' -> 'starting'
I 06-27 08:00:20.101 Going to 'starting' 
S 06-27 08:00:20.107 Unit says: Entering starting state from the sleeping state. 
I 06-27 08:00:20.870 Preparing 9 cameras.
I 06-27 08:00:20.871 Preparing 9 cameras.
S 06-27 08:00:22.005 Unit says: Finished with the starting state. The next state is scheduling.
S 06-27 08:00:22.007 Finished with starting
I 06-27 08:00:22.047 Run loop: 'starting' -> 'scheduling'
I 06-27 08:00:22.386 Going to 'scheduling' 
S 06-27 08:00:22.662 Unit says: Opening the dome before entering the scheduling state. 
I 06-27 08:00:22.668 Opening dome
I 06-27 08:00:22.671 Opening dome shutter.