From 9c212abde185516543afa9b77329d6b8cba0cad0 Mon Sep 17 00:00:00 2001 From: Bhavna Sharma Date: Tue, 4 Apr 2017 15:38:19 -0700 Subject: [PATCH] Add vertical uncertainity field Add vertical uncertainity field to LocGpsLocation and report whenever possible. CRs-Fixed: 2028902 Change-Id: I2610b0eaf527b516e7a1cac958b82795f535cc06 --- utils/loc_gps.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/loc_gps.h b/utils/loc_gps.h index 2e495b82..e3f21826 100644 --- a/utils/loc_gps.h +++ b/utils/loc_gps.h @@ -98,6 +98,8 @@ typedef uint16_t LocGpsLocationFlags; #define LOC_GPS_LOCATION_HAS_BEARING 0x0008 /** LocGpsLocation has valid accuracy. */ #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. */ @@ -545,6 +547,8 @@ typedef struct { float bearing; /** Represents expected accuracy in meters. */ float accuracy; + /** Represents the expected vertical uncertainity in meters*/ + float vertUncertainity; /** Timestamp for the location fix. */ LocGpsUtcTime timestamp; } LocGpsLocation;