2024-06-11 01:36:40 +00:00
|
|
|
#!/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)
|
2025-01-29 09:09:58 +00:00
|
|
|
print(f"Sats: {ug.measurementReport.numMeas} Accuracy: {gle.horizontalAccuracy:.2f} m cnos", sorted(cnos))
|
2024-06-11 01:36:40 +00:00
|
|
|
except Exception:
|
|
|
|
pass
|
|
|
|
sm.update()
|
|
|
|
time.sleep(0.1)
|