laikad: move 'from_qcom_source' into try block (#28510)

fix not cached except
old-commit-hash: 825c5a87df
beeps
Dean Lee 2 years ago committed by GitHub
parent ebc311bdc9
commit d0199b64b5
  1. 2
      selfdrive/locationd/laikad.py

@ -192,9 +192,9 @@ class Laikad:
def is_good_report(self, gnss_msg): def is_good_report(self, gnss_msg):
if gnss_msg.which() == 'drMeasurementReport' and self.use_qcom: if gnss_msg.which() == 'drMeasurementReport' and self.use_qcom:
constellation_id = ConstellationId.from_qcom_source(gnss_msg.drMeasurementReport.source)
# TODO: Understand and use remaining unknown constellations # TODO: Understand and use remaining unknown constellations
try: try:
constellation_id = ConstellationId.from_qcom_source(gnss_msg.drMeasurementReport.source)
good_constellation = constellation_id in [ConstellationId.GPS, ConstellationId.SBAS, ConstellationId.GLONASS] good_constellation = constellation_id in [ConstellationId.GPS, ConstellationId.SBAS, ConstellationId.GLONASS]
except NotImplementedError: except NotImplementedError:
good_constellation = False good_constellation = False

Loading…
Cancel
Save