From 005c4ae62c51ffc7e76f39cd25b2ea3115b81b16 Mon Sep 17 00:00:00 2001 From: Bruce Wayne Date: Thu, 20 Jun 2024 17:24:18 -0700 Subject: [PATCH] QCOM also outputs 0 as invalid nmea_id --- laika/raw_gnss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laika/raw_gnss.py b/laika/raw_gnss.py index e687180..b611672 100644 --- a/laika/raw_gnss.py +++ b/laika/raw_gnss.py @@ -245,7 +245,7 @@ def read_raw_qcom(report): for i in report.sv: # todo change svId to nmea_id in cereal message. Or better: change the publisher to publish correct svId's, since constellation id is also given nmea_id = i.svId - if nmea_id == 255: + if nmea_id == 255 or nmea_id == 0: # TODO nmea_id is not valid. Fix publisher continue _, sv_id = get_constellation_and_sv_id(nmea_id)