Skip to content

Commit

Permalink
Log satellite count in GpsLocationData (#34395)
Browse files Browse the repository at this point in the history
* Log satellite count in GpsLocationData

* update refs

* forgot to build
  • Loading branch information
adeebshihadeh authored Jan 16, 2025
1 parent 69d33ac commit a2ced8c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions cereal/log.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ struct GpsLocationData {
speedAccuracy @12 :Float32;

hasFix @13 :Bool;
satelliteCount @14 :Int8;

enum SensorSource {
android @0;
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/test/process_replay/ref_commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9758f1868c1c07d5a8d294f19bf6bf7b8b1beeda
87f79658023435884cee78abd9c00f61e9ad5cd9
1 change: 1 addition & 0 deletions system/ubloxd/ublox_msg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a2ced8c

Please sign in to comment.