Data payload format for data of type SENSOR_FORMAT_GPS
Synopsis:
#include <sensor/sensor_api.h>
typedef struct sensor_gps_format_t {
sensor_gps_fix_t fix_type;
double latitude;
double longitude;
int32_t altitude;
int32_t velocity[3];
uint32_t velocity_time_offset;
uint32_t time_offset;
uint32_t time_accuracy;
uint16_t gdop;
uint16_t pdop;
uint16_t tdop;
uint16_t vdop;
uint16_t hdop;
uint32_t latitude_std_deviation;
uint32_t longitude_std_deviation;
uint32_t altitude_std_deviation;
uint32_t speed_std_deviation;
sensor_utc_time_t utc;
} sensor_gps_format_t;
Data:
- sensor_gps_fix_t fix_type
- GPS fix of type sensor_gps_fix_t that specifies the status of the GPS fix.
- double latitude
- Latitude in degrees based on WGS84 ellipsoidal coordinate system.
- double longitude
- Longitude in degrees based on WGS84 ellipsoidal coordinate system.
- int32_t altitude
- Altitude (height above ellipsoid) in millimeters based on WGS84 ellipsoidal coordinate system.
- int32_t velocity[3]
- Velocity in the x, y, and z directions, in mm/s.
MAX_INT32 indicates value is currently unavailable.
- uint32_t velocity_time_offset
- Offset from the timestamp in sensor_buffer_t to apply for the velocity field only.
Time is provided in microseconds and will be zero when velocity is in sync with GPS data.
- uint32_t time_offset
- Offset from the timestamp in sensor_buffer_t to apply for this data point.
- uint32_t time_accuracy
- Time accuracy estimate, in ns.
- uint16_t gdop
- Geometric degree of precision.
- uint16_t pdop
- Position degree of precision.
- uint16_t tdop
- Time degree of precision.
- uint16_t vdop
- Vertical degree of precision.
- uint16_t hdop
- Horizontal degree of precision.
- uint32_t latitude_std_deviation
- Latitude standard deviation, in mm.
- uint32_t longitude_std_deviation
- Longitude standard deviation, in mm.
- uint32_t altitude_std_deviation
- Altitude standard deviation, in mm.
- uint32_t speed_std_deviation
- Speed standard deviation, in mm/s.
- sensor_utc_time_t utc
- Universal Time Coordinated (UTC) current time.
Library:
libsensor
Description:
The payload in data of sensor_buffer_t is an array of these data points.