diff --git a/EosPayload/drivers/GPS_driver.py b/EosPayload/drivers/GPS_driver.py index cc21355..3f7d775 100644 --- a/EosPayload/drivers/GPS_driver.py +++ b/EosPayload/drivers/GPS_driver.py @@ -38,8 +38,13 @@ def device_read(self, logger: logging.Logger) -> None: try: while True: geo = self.gps.geo_coords() - gps_fix = geo.fixType # fix type - if int(gps_fix) < 3: + if geo is not None: + gps_fix = geo.fixType # fix type + if gps_fix == 0: + logger.info("No fix") + if int(gps_fix) < 3: + logger.info("GPS fix quality low, consider changing location") + else: # Try again if we don't have a fix yet. logger.info("Waiting for fix...") self.thread_sleep(logger, 1) diff --git a/config.json b/config.json index 9baf6a0..de54ec0 100644 --- a/config.json +++ b/config.json @@ -19,21 +19,21 @@ "name": "camera-driver", "driver_class": "CameraDriver", "device_id": "CAMERA_1", - "enabled": true + "enabled": false }, { "name": "cutdown-driver", "driver_class": "CutdownDriver", "device_id": "CUTDOWN", - "enabled": true + "enabled": false }, { "name": "valve-driver", "driver_class": "ValveDriver", "device_id": "VALVE", - "enabled": true + "enabled": false }, { @@ -75,7 +75,7 @@ "name": "electric-field-sensor", "driver_class": "ElectricFieldSensor", "device_id": "MISC_SENSOR_3", - "enabled": true + "enabled": false } ] } diff --git a/requirements.txt b/requirements.txt index f7c179a..bec3a31 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -git+https://github.com/VIP-LES/EosLib@v4.7.0#egg=EosLib +git+https://github.com/VIP-LES/EosLib@v.4.7.0#egg=EosLib attrs==22.1.0 colorama==0.4.5 digi-xbee==1.4.1