Add vertical uncertainity field

Add vertical uncertainity field to
LocGpsLocation and report whenever
possible.

CRs-Fixed: 2028902

Change-Id: I2610b0eaf527b516e7a1cac958b82795f535cc06
This commit is contained in:
Bhavna Sharma 2017-04-04 15:38:19 -07:00 committed by Gerrit - the friendly Code Review server
parent 6cf01fac92
commit 9c212abde1

View file

@ -98,6 +98,8 @@ typedef uint16_t LocGpsLocationFlags;
#define LOC_GPS_LOCATION_HAS_BEARING 0x0008 #define LOC_GPS_LOCATION_HAS_BEARING 0x0008
/** LocGpsLocation has valid accuracy. */ /** LocGpsLocation has valid accuracy. */
#define LOC_GPS_LOCATION_HAS_ACCURACY 0x0010 #define LOC_GPS_LOCATION_HAS_ACCURACY 0x0010
/** LocGpsLocation has valid vertical uncertainity */
#define LOC_GPS_LOCATION_HAS_VERT_UNCERTAINITY 0x0020
/** Flags for the loc_gps_set_capabilities callback. */ /** Flags for the loc_gps_set_capabilities callback. */
@ -545,6 +547,8 @@ typedef struct {
float bearing; float bearing;
/** Represents expected accuracy in meters. */ /** Represents expected accuracy in meters. */
float accuracy; float accuracy;
/** Represents the expected vertical uncertainity in meters*/
float vertUncertainity;
/** Timestamp for the location fix. */ /** Timestamp for the location fix. */
LocGpsUtcTime timestamp; LocGpsUtcTime timestamp;
} LocGpsLocation; } LocGpsLocation;