mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Setting clock flags for GPS clock" into oc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
67be3e2f64
@@ -182,7 +182,6 @@ void GnssMeasurement::gpsMeasurementCb(GpsData* gpsData) {
|
||||
|
||||
auto clockVal = gpsData->clock;
|
||||
static uint32_t discontinuity_count_to_handle_old_clock_type = 0;
|
||||
auto flags = clockVal.flags;
|
||||
|
||||
gnssData.clock.leapSecond = clockVal.leap_second;
|
||||
/*
|
||||
@@ -205,7 +204,7 @@ void GnssMeasurement::gpsMeasurementCb(GpsData* gpsData) {
|
||||
break;
|
||||
case GPS_CLOCK_TYPE_GPS_TIME:
|
||||
// GPS time, need to convert.
|
||||
flags |= GPS_CLOCK_HAS_FULL_BIAS;
|
||||
clockVal.flags |= GPS_CLOCK_HAS_FULL_BIAS;
|
||||
clockVal.full_bias_ns = clockVal.time_ns;
|
||||
clockVal.time_ns = 0;
|
||||
gnssData.clock.hwClockDiscontinuityCount =
|
||||
|
||||
Reference in New Issue
Block a user