mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 01:53:57 +08:00
Log satellite count in GpsLocationData (#34395)
* Log satellite count in GpsLocationData * update refs * forgot to build
This commit is contained in:
@@ -409,6 +409,7 @@ struct GpsLocationData {
|
||||
speedAccuracy @12 :Float32;
|
||||
|
||||
hasFix @13 :Bool;
|
||||
satelliteCount @14 :Int8;
|
||||
|
||||
enum SensorSource {
|
||||
android @0;
|
||||
|
||||
@@ -1 +1 @@
|
||||
9758f1868c1c07d5a8d294f19bf6bf7b8b1beeda
|
||||
87f79658023435884cee78abd9c00f61e9ad5cd9
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user