APM:Libraries
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
AP_GPS_MAV Class Reference

#include <AP_GPS_MAV.h>

Inheritance diagram for AP_GPS_MAV:
[legend]
Collaboration diagram for AP_GPS_MAV:
[legend]

Public Member Functions

 AP_GPS_MAV (AP_GPS &_gps, AP_GPS::GPS_State &_state, AP_HAL::UARTDriver *_port)
 
bool read ()
 
void handle_msg (const mavlink_message_t *msg)
 
const char * name () const override
 
- Public Member Functions inherited from AP_GPS_Backend
 AP_GPS_Backend (AP_GPS &_gps, AP_GPS::GPS_State &_state, AP_HAL::UARTDriver *_port)
 
virtual ~AP_GPS_Backend (void)
 
virtual AP_GPS::GPS_Status highest_supported_status (void)
 
virtual bool is_configured (void)
 
virtual void inject_data (const uint8_t *data, uint16_t len)
 
virtual bool supports_mavlink_gps_rtk_message ()
 
virtual void send_mavlink_gps_rtk (mavlink_channel_t chan)
 
virtual void broadcast_configuration_failure_reason (void) const
 
virtual void handle_gnss_msg (const AP_GPS::GPS_State &msg)
 
virtual bool get_lag (float &lag) const
 
virtual bool is_healthy (void) const
 
void broadcast_gps_type () const
 
virtual void Write_DataFlash_Log_Startup_messages () const
 
virtual bool prepare_for_arming (void)
 

Static Public Member Functions

static bool _detect (struct MAV_detect_state &state, uint8_t data)
 

Private Attributes

bool _new_data
 

Additional Inherited Members

- Protected Member Functions inherited from AP_GPS_Backend
int32_t swap_int32 (int32_t v) const
 
int16_t swap_int16 (int16_t v) const
 
void fill_3d_velocity (void)
 
void make_gps_time (uint32_t bcd_date, uint32_t bcd_milliseconds)
 
void _detection_message (char *buffer, uint8_t buflen) const
 
bool should_df_log () const
 
- Protected Attributes inherited from AP_GPS_Backend
AP_HAL::UARTDriverport
 UART we are attached to. More...
 
AP_GPSgps
 access to frontend (for parameters) More...
 
AP_GPS::GPS_Statestate
 public state for this instance More...
 

Detailed Description

Definition at line 28 of file AP_GPS_MAV.h.

Constructor & Destructor Documentation

◆ AP_GPS_MAV()

AP_GPS_MAV::AP_GPS_MAV ( AP_GPS _gps,
AP_GPS::GPS_State _state,
AP_HAL::UARTDriver _port 
)

Definition at line 22 of file AP_GPS_MAV.cpp.

Member Function Documentation

◆ _detect()

static bool AP_GPS_MAV::_detect ( struct MAV_detect_state &  state,
uint8_t  data 
)
static

◆ handle_msg()

void AP_GPS_MAV::handle_msg ( const mavlink_message_t *  msg)
virtual

Reimplemented from AP_GPS_Backend.

Definition at line 42 of file AP_GPS_MAV.cpp.

Here is the call graph for this function:

◆ name()

const char* AP_GPS_MAV::name ( ) const
inlineoverridevirtual

Implements AP_GPS_Backend.

Definition at line 38 of file AP_GPS_MAV.h.

◆ read()

bool AP_GPS_MAV::read ( void  )
virtual

Implements AP_GPS_Backend.

Definition at line 30 of file AP_GPS_MAV.cpp.

Member Data Documentation

◆ _new_data

bool AP_GPS_MAV::_new_data
private

Definition at line 41 of file AP_GPS_MAV.h.

Referenced by handle_msg(), and read().


The documentation for this class was generated from the following files: