From bf80dfb9e9713c50712e24e9b1b1afce4e2dce79 Mon Sep 17 00:00:00 2001 From: Jiafei Wen Date: Wed, 23 Sep 2015 18:01:06 -0700 Subject: [PATCH] Add 3 new fields in GPS and FLP pipe To support next version of GTP AP protocol, this change adds the support for the below 3 fields in GPS pipe and FLP pipe : 1). heading_unc 2). horizontal_reliability 3). vertical_reliability Change-Id: If51c38f9159f372c2b2c12fbb55d123958cfee95 CRs-Fixed: 898876 --- core/gps_extended_c.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/core/gps_extended_c.h b/core/gps_extended_c.h index 06764cf3..183fa411 100644 --- a/core/gps_extended_c.h +++ b/core/gps_extended_c.h @@ -211,6 +211,20 @@ typedef uint16_t GpsLocationExtendedFlags; #define GPS_LOCATION_EXTENDED_HAS_VERT_UNC 0x0010 /** GpsLocationExtended has valid speed uncertainty */ #define GPS_LOCATION_EXTENDED_HAS_SPEED_UNC 0x0020 +/** GpsLocationExtended has valid heading uncertainty */ +#define GPS_LOCATION_EXTENDED_HAS_BEARING_UNC 0x0040 +/** GpsLocationExtended has valid horizontal reliability */ +#define GPS_LOCATION_EXTENDED_HAS_HOR_RELIABILITY 0x0080 +/** GpsLocationExtended has valid vertical reliability */ +#define GPS_LOCATION_EXTENDED_HAS_VERT_RELIABILITY 0x0100 + +typedef enum { + LOC_RELIABILITY_NOT_SET = 0, + LOC_RELIABILITY_VERY_LOW = 1, + LOC_RELIABILITY_LOW = 2, + LOC_RELIABILITY_MEDIUM = 3, + LOC_RELIABILITY_HIGH = 4 +}LocReliability; /** Represents gps location extended. */ typedef struct { @@ -232,6 +246,12 @@ typedef struct { float vert_unc; /** speed uncertainty in m/s */ float speed_unc; + /** heading uncertainty in degrees (0 to 359.999) */ + float bearing_unc; + /** horizontal reliability. */ + LocReliability horizontal_reliability; + /** vertical reliability. */ + LocReliability vertical_reliability; } GpsLocationExtended; /** Represents SV status. */