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
This commit is contained in:
Kevin Tang 2015-03-20 09:30:39 -07:00
parent 24c39184b7
commit f3444670b8

View file

@ -36,6 +36,7 @@ extern "C" {
#include <ctype.h>
#include <stdbool.h>
#include <hardware/gps.h>
#include <time.h>
/** 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