diff options
author | Kevin Tang <zhikait@codeaurora.org> | 2018-09-21 14:52:32 -0700 |
---|---|---|
committer | Kevin Tang <zhikait@codeaurora.org> | 2018-09-21 14:52:32 -0700 |
commit | 935c00192ef480a3b5385d57ec496dda05c3962e (patch) | |
tree | 7b17147ca8efbab264af4b531737e78b6d798513 /utils/loc_gps.h | |
parent | 033a0fa1c6cabd0841bbbd0c762f4b4dd4a5753f (diff) | |
download | gps-935c00192ef480a3b5385d57ec496dda05c3962e.tar.gz |
Fix for vertical accuracy field missing on SDK APIs
Field flag VERTICAL_ACCURACY_BIT changed definition internally
in HAL, and was mapped 1 to 1 to LocHidlLocationFlagsBits.
Fixed by adding a proper remapping function.
Change-Id: Ida510c2b54568208ffa28e7c017f22a7f0e3f11c
CRs-fixed: 2317059
Diffstat (limited to 'utils/loc_gps.h')
-rw-r--r-- | utils/loc_gps.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/loc_gps.h b/utils/loc_gps.h index b905c53..b58f20b 100644 --- a/utils/loc_gps.h +++ b/utils/loc_gps.h @@ -102,6 +102,10 @@ typedef uint16_t LocGpsLocationFlags; #define LOC_GPS_LOCATION_HAS_VERT_UNCERTAINITY 0x0040 /** LocGpsLocation has valid spoof mask */ #define LOC_GPS_LOCATION_HAS_SPOOF_MASK 0x0080 +/** LocGpsLocation has valid speed accuracy */ +#define LOC_GPS_LOCATION_HAS_SPEED_ACCURACY 0x0100 +/** LocGpsLocation has valid bearing accuracy */ +#define LOC_GPS_LOCATION_HAS_BEARING_ACCURACY 0x0200 /** Spoof mask in LocGpsLocation */ typedef uint32_t LocGpsSpoofMask; |