You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
521 B
21 lines
521 B
4 years ago
|
#!/usr/bin/env python3
|
||
|
import time
|
||
|
import cereal.messaging as messaging
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
sm = messaging.SubMaster(['ubloxGnss', 'gpsLocationExternal'])
|
||
|
|
||
|
while 1:
|
||
|
ug = sm['ubloxGnss']
|
||
|
gle = sm['gpsLocationExternal']
|
||
|
|
||
|
try:
|
||
|
cnos = []
|
||
|
for m in ug.measurementReport.measurements:
|
||
|
cnos.append(m.cno)
|
||
|
print("Sats: %d Accuracy: %.2f m cnos" % (ug.measurementReport.numMeas, gle.accuracy), sorted(cnos))
|
||
4 years ago
|
except Exception:
|
||
4 years ago
|
pass
|
||
|
sm.update()
|
||
|
time.sleep(0.1)
|