sensor_flag_gps_format_t

Updated: April 19, 2023

Bit settings for the sensor_buffer_t flag field for data of type SENSOR_FORMAT_GPS

Synopsis:

#include <sensor/sensor_gps_imu.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
The fix_type field is present.
FLAG_GPS_LATITUDE
The latitude field is present.
FLAG_GPS_LONGITUDE
The longitude field is present.
FLAG_GPS_ALTITUDE
The altitude field is present.
FLAG_GPS_VELOCITY
The velocity field is present.
FLAG_GPS_TIME_ACCURACY
The time_accuracy field is present.
FLAG_GPS_GDOP
The gdop field is present.
FLAG_GPS_PDOP
The pdop field is present.
FLAG_GPS_TDOP
The tdop field is present.
FLAG_GPS_VDOP
The vdop field is present.
FLAG_GPS_HDOP
The hdop field is present.
FLAG_GPS_LATITUDE_STD_DEVIATION
The latitude_std_deviation field is present.
FLAG_GPS_LONGITUDE_STD_DEVIATION
The longitude_std_deviation field is present.
FLAG_GPS_ALTITUDE_STD_DEVIATION
The altitude_std_deviation field is present.
FLAG_GPS_SPEED_STD_DEVIATION
The speed_std_deviation field is present.
FLAG_GPS_UTC
The utc field is present.

Library:

libsensor

Description:

This enumeration represents bits in the flag field that when set, indicate the data fields in the sensor_gps_format_t structure that are defined for this buffer.