Log satellite count in GpsLocationData (#34395)

* Log satellite count in GpsLocationData

* update refs

* forgot to build
This commit is contained in:
Adeeb Shihadeh
2025-01-15 16:53:39 -08:00
committed by GitHub
parent 69d33ac11d
commit a2ced8c8eb
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -134,6 +134,7 @@ kj::Array<capnp::word> 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;