The meaning of the flag field in the sensor_format_t for data of type SENSOR_FORMAT_GPS
Synopsis:
#include <sensor/sensor_api.h>
typedef enum {
FLAG_GPS_FIX_TYPE = 1,
FLAG_GPS_LATITUDE = 2,
FLAG_GPS_LONGITUDE = 4,
FLAG_GPS_ALTITUDE = 8,
FLAG_GPS_VELOCITY = 0x10,
FLAG_GPS_TIME_ACCURACY = 0x20,
FLAG_GPS_GDOP = 0x40,
FLAG_GPS_PDOP = 0x80,
FLAG_GPS_TDOP = 0x100,
FLAG_GPS_VDOP = 0x200,
FLAG_GPS_HDOP = 0x400,
FLAG_GPS_LATITUDE_STD_DEVIATION = 0x800,
FLAG_GPS_LONGITUDE_STD_DEVIATION = 0x1000,
FLAG_GPS_ALTITUDE_STD_DEVIATION = 0x2000,
FLAG_GPS_SPEED_STD_DEVIATION = 0x4000,
FLAG_GPS_UTC = 0x8000
} sensor_flag_gps_format_t;
Data:
- FLAG_GPS_FIX_TYPE
- If bit is set, the fix_type field is present.
- FLAG_GPS_LATITUDE
- If bit is set, the latitude field is present.
- FLAG_GPS_LONGITUDE
- If bit is set, the longitude field is present.
- FLAG_GPS_ALTITUDE
- If bit is set, the altitude field is present.
- FLAG_GPS_VELOCITY
- If bit is set, the velocity field is present.
- FLAG_GPS_TIME_ACCURACY
- If bit is set, the time_accuracy field is present.
- FLAG_GPS_GDOP
- If bit is set, the gdop field is present.
- FLAG_GPS_PDOP
- If bit is set, the pdop field is present.
- FLAG_GPS_TDOP
- If bit is set, the tdop field is present.
- FLAG_GPS_VDOP
- If bit is set, the vdop field is present.
- FLAG_GPS_HDOP
- If bit is set, the hdop field is present.
- FLAG_GPS_LATITUDE_STD_DEVIATION
- If bit is set, the latitude_std_deviation field is present.
- FLAG_GPS_LONGITUDE_STD_DEVIATION
- If bit is set, the longitude_std_deviation field is present.
- FLAG_GPS_ALTITUDE_STD_DEVIATION
- If bit is set, the altitude_std_deviation field is present.
- FLAG_GPS_SPEED_STD_DEVIATION
- If bit is set, the speed_std_deviation field is present.
- FLAG_GPS_UTC
- If bit is set, the utc field is present.
Library:
libsensor