Skip to content

Commit

Permalink
QCOM also outputs 0 as invalid nmea_id
Browse files Browse the repository at this point in the history
  • Loading branch information
haraschax committed Jun 21, 2024
1 parent c2f5446 commit 005c4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion laika/raw_gnss.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 005c4ae

Please sign in to comment.