From 343fea2bf9f68e78e21f0dc13912e2accb4d958d Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Wed, 14 Apr 2021 11:25:43 +0200 Subject: [PATCH] Fix typo in ephemeris parsing (#20677) * fix typo in ephemeris parsing * update ref --- selfdrive/locationd/ublox_msg.cc | 2 +- selfdrive/test/process_replay/ref_commit | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/locationd/ublox_msg.cc b/selfdrive/locationd/ublox_msg.cc index 154200c088..e0463d8e17 100644 --- a/selfdrive/locationd/ublox_msg.cc +++ b/selfdrive/locationd/ublox_msg.cc @@ -59,7 +59,7 @@ class EphemerisData { int i_0 = (GET_FIELD_S(subframes[3][2+2], 8, 6) << 24) | GET_FIELD_U( subframes[3][2+3], 24, 6); int c_rc = GET_FIELD_S(subframes[3][2+4], 16, 14); - int w = (GET_FIELD_S(subframes[3][2+4], 8, 6) << 24) | GET_FIELD_U(subframes[3][5], 24, 6); + int w = (GET_FIELD_S(subframes[3][2+4], 8, 6) << 24) | GET_FIELD_U(subframes[3][2+5], 24, 6); int omega_dot = GET_FIELD_S(subframes[3][2+6], 24, 6); int idot = GET_FIELD_S(subframes[3][2+7], 14, 8); diff --git a/selfdrive/test/process_replay/ref_commit b/selfdrive/test/process_replay/ref_commit index 89312f384f..f5c80e086e 100644 --- a/selfdrive/test/process_replay/ref_commit +++ b/selfdrive/test/process_replay/ref_commit @@ -1 +1 @@ -1a3391dcabbcef563062010bda7ac89793528004 \ No newline at end of file +abdaa764cc8aec4e30522e951667c5473970cfe1 \ No newline at end of file