Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions EosPayload/drivers/GPS_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
},

{
Expand Down Expand Up @@ -75,7 +75,7 @@
"name": "electric-field-sensor",
"driver_class": "ElectricFieldSensor",
"device_id": "MISC_SENSOR_3",
"enabled": true
"enabled": false
}
]
}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down