From a2ced8c8eb4043c3cb8bea2b7cfec0aa8ca9dd78 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 15 Jan 2025 16:53:39 -0800 Subject: [PATCH] Log satellite count in GpsLocationData (#34395) * Log satellite count in GpsLocationData * update refs * forgot to build --- cereal/log.capnp | 1 + selfdrive/test/process_replay/ref_commit | 2 +- system/ubloxd/ublox_msg.cc | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cereal/log.capnp b/cereal/log.capnp index 68ea3099b8..83e64b5a85 100644 --- a/cereal/log.capnp +++ b/cereal/log.capnp @@ -409,6 +409,7 @@ struct GpsLocationData { speedAccuracy @12 :Float32; hasFix @13 :Bool; + satelliteCount @14 :Int8; enum SensorSource { android @0; diff --git a/selfdrive/test/process_replay/ref_commit b/selfdrive/test/process_replay/ref_commit index 59b36850a5..56cbcae4bd 100644 --- a/selfdrive/test/process_replay/ref_commit +++ b/selfdrive/test/process_replay/ref_commit @@ -1 +1 @@ -9758f1868c1c07d5a8d294f19bf6bf7b8b1beeda \ No newline at end of file +87f79658023435884cee78abd9c00f61e9ad5cd9 \ No newline at end of file diff --git a/system/ubloxd/ublox_msg.cc b/system/ubloxd/ublox_msg.cc index 16b8766cf0..22c99501f3 100644 --- a/system/ubloxd/ublox_msg.cc +++ b/system/ubloxd/ublox_msg.cc @@ -134,6 +134,7 @@ kj::Array UbloxMsgParser::gen_nav_pvt(ubx_t::nav_pvt_t *msg) { gpsLoc.setSpeed(msg->g_speed() * 1e-03); gpsLoc.setBearingDeg(msg->head_mot() * 1e-5); gpsLoc.setHorizontalAccuracy(msg->h_acc() * 1e-03); + gpsLoc.setSatelliteCount(msg->num_sv()); std::tm timeinfo = std::tm(); timeinfo.tm_year = msg->year() - 1900; timeinfo.tm_mon = msg->month() - 1;