APM:Libraries
Public Attributes | List of all members
AP_GPS::GPS_State Struct Reference

#include <AP_GPS.h>

Collaboration diagram for AP_GPS::GPS_State:
[legend]

Public Attributes

uint8_t instance
 
GPS_Status status
 driver fix status More...
 
uint32_t time_week_ms
 GPS time (milliseconds from start of GPS week) More...
 
uint16_t time_week
 GPS week number. More...
 
Location location
 last fix location More...
 
float ground_speed
 ground speed in m/sec More...
 
float ground_course
 ground course in degrees More...
 
uint16_t hdop
 horizontal dilution of precision in cm More...
 
uint16_t vdop
 vertical dilution of precision in cm More...
 
uint8_t num_sats
 Number of visible satellites. More...
 
Vector3f velocity
 3D velocity in m/s, in NED format More...
 
float speed_accuracy
 3D velocity RMS accuracy estimate in m/s More...
 
float horizontal_accuracy
 horizontal RMS accuracy estimate in m More...
 
float vertical_accuracy
 vertical RMS accuracy estimate in m More...
 
bool have_vertical_velocity:1
 does GPS give vertical velocity? Set to true only once available. More...
 
bool have_speed_accuracy:1
 does GPS give speed accuracy? Set to true only once available. More...
 
bool have_horizontal_accuracy:1
 does GPS give horizontal position accuracy? Set to true only once available. More...
 
bool have_vertical_accuracy:1
 does GPS give vertical position accuracy? Set to true only once available. More...
 
uint32_t last_gps_time_ms
 the system time we got the last GPS timestamp, milliseconds More...
 
uint32_t rtk_time_week_ms
 GPS Time of Week of last baseline in milliseconds. More...
 
uint16_t rtk_week_number
 GPS Week Number of last baseline. More...
 
uint32_t rtk_age_ms
 GPS age of last baseline correction in milliseconds (0 when no corrections, 0xFFFFFFFF indicates overflow) More...
 
uint8_t rtk_num_sats
 Current number of satellites used for RTK calculation. More...
 
uint8_t rtk_baseline_coords_type
 Coordinate system of baseline. 0 == ECEF, 1 == NED. More...
 
int32_t rtk_baseline_x_mm
 Current baseline in ECEF x or NED north component in mm. More...
 
int32_t rtk_baseline_y_mm
 Current baseline in ECEF y or NED east component in mm. More...
 
int32_t rtk_baseline_z_mm
 Current baseline in ECEF z or NED down component in mm. More...
 
uint32_t rtk_accuracy
 Current estimate of 3D baseline accuracy (receiver dependent, typical 0 to 9999) More...
 
int32_t rtk_iar_num_hypotheses
 Current number of integer ambiguity hypotheses. More...
 

Detailed Description

Definition at line 128 of file AP_GPS.h.

Member Data Documentation

◆ ground_course

float AP_GPS::GPS_State::ground_course

◆ ground_speed

float AP_GPS::GPS_State::ground_speed

◆ have_horizontal_accuracy

bool AP_GPS::GPS_State::have_horizontal_accuracy

◆ have_speed_accuracy

bool AP_GPS::GPS_State::have_speed_accuracy

◆ have_vertical_accuracy

bool AP_GPS::GPS_State::have_vertical_accuracy

◆ have_vertical_velocity

bool AP_GPS::GPS_State::have_vertical_velocity

◆ hdop

uint16_t AP_GPS::GPS_State::hdop

◆ horizontal_accuracy

float AP_GPS::GPS_State::horizontal_accuracy

◆ instance

uint8_t AP_GPS::GPS_State::instance

◆ last_gps_time_ms

uint32_t AP_GPS::GPS_State::last_gps_time_ms

◆ location

Location AP_GPS::GPS_State::location

◆ num_sats

uint8_t AP_GPS::GPS_State::num_sats

◆ rtk_accuracy

uint32_t AP_GPS::GPS_State::rtk_accuracy

Current estimate of 3D baseline accuracy (receiver dependent, typical 0 to 9999)

Definition at line 160 of file AP_GPS.h.

Referenced by AP_GPS_ERB::_parse_gps(), and AP_GPS_Backend::send_mavlink_gps_rtk().

◆ rtk_age_ms

uint32_t AP_GPS::GPS_State::rtk_age_ms

GPS age of last baseline correction in milliseconds (0 when no corrections, 0xFFFFFFFF indicates overflow)

Definition at line 154 of file AP_GPS.h.

Referenced by AP_GPS_ERB::_parse_gps(), AP_GPS_NOVA::process_message(), AP_GPS_SBF::process_message(), and AP_GPS::rtk_age_ms().

◆ rtk_baseline_coords_type

uint8_t AP_GPS::GPS_State::rtk_baseline_coords_type

Coordinate system of baseline. 0 == ECEF, 1 == NED.

Definition at line 156 of file AP_GPS.h.

Referenced by AP_GPS_ERB::_parse_gps(), and AP_GPS_Backend::send_mavlink_gps_rtk().

◆ rtk_baseline_x_mm

int32_t AP_GPS::GPS_State::rtk_baseline_x_mm

Current baseline in ECEF x or NED north component in mm.

Definition at line 157 of file AP_GPS.h.

Referenced by AP_GPS_ERB::_parse_gps(), and AP_GPS_Backend::send_mavlink_gps_rtk().

◆ rtk_baseline_y_mm

int32_t AP_GPS::GPS_State::rtk_baseline_y_mm

Current baseline in ECEF y or NED east component in mm.

Definition at line 158 of file AP_GPS.h.

Referenced by AP_GPS_ERB::_parse_gps(), and AP_GPS_Backend::send_mavlink_gps_rtk().

◆ rtk_baseline_z_mm

int32_t AP_GPS::GPS_State::rtk_baseline_z_mm

Current baseline in ECEF z or NED down component in mm.

Definition at line 159 of file AP_GPS.h.

Referenced by AP_GPS_ERB::_parse_gps(), and AP_GPS_Backend::send_mavlink_gps_rtk().

◆ rtk_iar_num_hypotheses

int32_t AP_GPS::GPS_State::rtk_iar_num_hypotheses

Current number of integer ambiguity hypotheses.

Definition at line 161 of file AP_GPS.h.

Referenced by AP_GPS_SBP::_attempt_state_update(), and AP_GPS_Backend::send_mavlink_gps_rtk().

◆ rtk_num_sats

uint8_t AP_GPS::GPS_State::rtk_num_sats

Current number of satellites used for RTK calculation.

Definition at line 155 of file AP_GPS.h.

Referenced by AP_GPS_ERB::_parse_gps(), AP_GPS_NOVA::process_message(), AP_GPS::rtk_num_sats(), and AP_GPS_Backend::send_mavlink_gps_rtk().

◆ rtk_time_week_ms

uint32_t AP_GPS::GPS_State::rtk_time_week_ms

GPS Time of Week of last baseline in milliseconds.

Definition at line 152 of file AP_GPS.h.

Referenced by AP_GPS_ERB::_parse_gps(), and AP_GPS_Backend::send_mavlink_gps_rtk().

◆ rtk_week_number

uint16_t AP_GPS::GPS_State::rtk_week_number

GPS Week Number of last baseline.

Definition at line 153 of file AP_GPS.h.

Referenced by AP_GPS_ERB::_parse_gps(), and AP_GPS_Backend::send_mavlink_gps_rtk().

◆ speed_accuracy

float AP_GPS::GPS_State::speed_accuracy

◆ status

GPS_Status AP_GPS::GPS_State::status

◆ time_week

uint16_t AP_GPS::GPS_State::time_week

◆ time_week_ms

uint32_t AP_GPS::GPS_State::time_week_ms

◆ vdop

uint16_t AP_GPS::GPS_State::vdop

◆ velocity

Vector3f AP_GPS::GPS_State::velocity

◆ vertical_accuracy

float AP_GPS::GPS_State::vertical_accuracy

The documentation for this struct was generated from the following file: