Merge "Add 3 new fields in GPS and FLP pipe"

This commit is contained in:
Linux Build Service Account 2015-09-24 21:35:40 -07:00 committed by Gerrit - the friendly Code Review server
commit 9f830f906d

View file

@ -211,6 +211,20 @@ typedef uint16_t GpsLocationExtendedFlags;
#define GPS_LOCATION_EXTENDED_HAS_VERT_UNC 0x0010 #define GPS_LOCATION_EXTENDED_HAS_VERT_UNC 0x0010
/** GpsLocationExtended has valid speed uncertainty */ /** GpsLocationExtended has valid speed uncertainty */
#define GPS_LOCATION_EXTENDED_HAS_SPEED_UNC 0x0020 #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. */ /** Represents gps location extended. */
typedef struct { typedef struct {
@ -232,6 +246,12 @@ typedef struct {
float vert_unc; float vert_unc;
/** speed uncertainty in m/s */ /** speed uncertainty in m/s */
float speed_unc; 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; } GpsLocationExtended;
/** Represents SV status. */ /** Represents SV status. */