AstroHuntsman / huntsman-pocs

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

Huntsman not seeing weather is safe #495

Closed Physarah closed 3 years ago

Physarah commented 3 years ago

While running without weather simulator, and with aag returning weather is safe , Huntsman still determines that weather is unsafe.

In the logs it is reading the aag and seeing fresh entires (not stale) and updating etc, but for some reason doesn't recognise that it is safe.

6-29 08:17:53.188 Starting run loop I 06-29 08:17:53.243 Run loop: 'taking_darks' -> 'starting' I 06-29 08:17:53.243 Run loop: 'taking_darks' -> 'starting' D 06-29 08:17:53.277 Checking for AC power D 06-29 08:17:53.310 Using power simulator D 06-29 08:17:53.450 Sun -13.97 deg > -18.0 deg [observe] D 06-29 08:17:53.453 Observatory is_dark: False D 06-29 08:17:53.477 Dark Check: False D 06-29 08:17:53.503 Checking weather safety D 06-29 08:17:53.530 Weather Safety: True [99 sec old - 2021-06-29 08:16:14] W 06-29 08:17:53.670 Unsafe conditions: {'ac_power': True, 'is_dark': False, 'good_weather': False, 'free_space_root': True, 'free_space_images': True} W 06-29 08:17:53.670 Unsafe conditions: {'ac_power': True, 'is_dark': False, 'good_weather': False, 'free_space_root': True, 'free_space_images': True} I 06-29 08:17:53.673 Going to 'starting' I 06-29 08:17:53.673 Going to 'starting' D 06-29 08:17:53.677 startup: taking_darks → starting D 06-29 08:17:53.679 Checking safety for <Transition('taking_darks', 'starting')@140470481766432> D 06-29 08:17:53.684 Always safe to move to starting S 06-29 08:17:53.687 Unit says: Entering starting state from the taking_darks state. S 06-29 08:17:53.687 Unit says: Entering starting state from the taking_darks state. D 06-29 08:17:53.767 Mount status: {'ra_rate': 15.0410644, 'dec_rate': 0, 'tracking': False, 'slewing': False, 'connected': True, 'error': 0, 'parked': True, 'ra': 2.634334015869421, 'dec': -20.4291190678242, 'alt': '-31.69', 'az': '211.20', 'ha': '10.1294', 'success': True} D 06-29 08:17:54.636 State change status: {'state': 'starting', 'system': {'free_space': '58.312818688 Gbyte'}, 'observatory': {'can_observe': True, 'mount': {'tracking_rate': '1.0000', 'ra_guide_rate': 0.9, 'dec_guide_rate': 0.9, 'movement_speed': '', 'current_ra': <Longitude 39.51469755 deg>, 'current_dec': <Latitude -20.429119 deg>, 'ra_rate': 15.0410644, 'dec_rate': 0, 'tracking': False, 'slewing': False, 'connected': True, 'error': 0, 'parked': True, 'ra': 2.634334015869421, 'dec': -20.4291190678242, 'alt': '-31.69', 'az': '211.20', 'ha': '10.1294', 'success': True, 'current_ha': <Longitude 10.11496942 hourangle>}, 'dome': {'dome_loop_running': True, 'status_loop_running': True, 'keep_shutter_open': False, 'Shutter': 'Closed', 'Door': 'Closed', 'Battery': 12.8065, 'Solar_A': 0.0434176, 'Switch': 'EM243A'}, 'observer': {'siderealtime': '12h44m57.5798s', 'utctime': <Time object: scale='utc' format='datetime' value=2021-06-29 08:17:53.696052>, 'localtime': datetime.datetime(2021, 6, 29, 8, 17, 53, 792062), 'local_evening_astro_time':