laikad: Filter unwanted pseudoranges (#25051)

Filter unwanted pseudoranges
pull/25054/head
Gijs Koning 3 years ago committed by GitHub
parent e336f254b1
commit b88d7c89fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      selfdrive/locationd/laikad.py

@ -103,6 +103,9 @@ class Laikad:
self.fetch_orbits(latest_msg_t + SECS_IN_MIN, block)
new_meas = read_raw_ublox(report)
# Filter measurements with unexpected pseudoranges for GPS and GLONASS satellites
new_meas = [m for m in new_meas if 1e7 < m.observables['C1C'] < 3e7]
processed_measurements = process_measurements(new_meas, self.astro_dog)
est_pos = self.get_est_pos(t, processed_measurements)

Loading…
Cancel
Save