From f3444670b81fb399c7ef3862e0f101340413b74e Mon Sep 17 00:00:00 2001 From: Kevin Tang Date: Fri, 20 Mar 2015 09:30:39 -0700 Subject: [PATCH] Add Course TimeStamp & asso. unc to Measurement We need to add the course time stamp when the measurements are received in GNSS driver to align the measurements and sensor samples received from SLIM. Change-Id: I4ef067890e16c2585f8a9c7809c4d7421b895cd0 --- core/gps_extended_c.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/gps_extended_c.h b/core/gps_extended_c.h index 9cfe12f5..7a359823 100644 --- a/core/gps_extended_c.h +++ b/core/gps_extended_c.h @@ -36,6 +36,7 @@ extern "C" { #include #include #include +#include /** Location has valid source information. */ #define LOCATION_HAS_SOURCE_INFO 0x0020 @@ -905,6 +906,14 @@ typedef struct */ } Gnss_ClockMeasurementStructType; +typedef struct +{ + struct timespec apTimeStamp; + /*boottime received from pps-ktimer*/ + float apTimeStampUncertaintyMs; + /* timestamp uncertainty in milli seconds */ +}Gnss_ApTimeStampStructType; + typedef struct { size_t size; @@ -932,6 +941,8 @@ typedef struct Gnss_LocRcvrClockFrequencyInfoStructType clockFreq; /* Freq */ bool gnssMeasValid; Gnss_ClockMeasurementStructType gnssMeas; + Gnss_ApTimeStampStructType timeStamp; + } GnssSvMeasurementSet; typedef enum