APM:Libraries
|
#include <AP_GPS_MTK.h>
Classes | |
struct | diyd_mtk_msg |
union | PACKED |
Public Member Functions | |
AP_GPS_MTK (AP_GPS &_gps, AP_GPS::GPS_State &_state, AP_HAL::UARTDriver *_port) | |
bool | read (void) |
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_msg (const mavlink_message_t *msg) |
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 MTK_detect_state &state, uint8_t data) |
static void | send_init_blob (uint8_t instance, AP_GPS &gps) |
Private Types | |
enum | diyd_mtk_fix_type { FIX_NONE = 1, FIX_2D = 2, FIX_3D = 3 } |
enum | diyd_mtk_protocol_bytes { PREAMBLE1 = 0xb5, PREAMBLE2 = 0x62, MESSAGE_CLASS = 1, MESSAGE_ID = 5 } |
Private Member Functions | |
void | _parse_gps () |
Private Attributes | |
uint8_t | _ck_a |
uint8_t | _ck_b |
uint8_t | _step |
uint8_t | _payload_counter |
union AP_GPS_MTK::PACKED | _buffer |
Static Private Attributes | |
static const char | _initialisation_blob [] = MTK_OUTPUT_5HZ SBAS_ON WAAS_ON MTK_NAVTHRES_OFF |
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::UARTDriver * | port |
UART we are attached to. More... | |
AP_GPS & | gps |
access to frontend (for parameters) More... | |
AP_GPS::GPS_State & | state |
public state for this instance More... | |
Definition at line 30 of file AP_GPS_MTK.h.
|
private |
Enumerator | |
---|---|
FIX_NONE | |
FIX_2D | |
FIX_3D |
Definition at line 52 of file AP_GPS_MTK.h.
|
private |
Enumerator | |
---|---|
PREAMBLE1 | |
PREAMBLE2 | |
MESSAGE_CLASS | |
MESSAGE_ID |
Definition at line 58 of file AP_GPS_MTK.h.
AP_GPS_MTK::AP_GPS_MTK | ( | AP_GPS & | _gps, |
AP_GPS::GPS_State & | _state, | ||
AP_HAL::UARTDriver * | _port | ||
) |
|
static |
Definition at line 170 of file AP_GPS_MTK.cpp.
Referenced by AP_GPS::detect_instance().
|
private |
|
inlineoverridevirtual |
Implements AP_GPS_Backend.
Definition at line 39 of file AP_GPS_MTK.h.
|
virtual |
Implements AP_GPS_Backend.
Definition at line 59 of file AP_GPS_MTK.cpp.
|
static |
Definition at line 41 of file AP_GPS_MTK.cpp.
Referenced by AP_GPS_MTK19::AP_GPS_MTK19().
|
private |
Referenced by read().
|
private |
Definition at line 66 of file AP_GPS_MTK.h.
Referenced by read().
|
private |
Definition at line 67 of file AP_GPS_MTK.h.
Referenced by read().
|
staticprivate |
Definition at line 82 of file AP_GPS_MTK.h.
Referenced by AP_GPS_MTK(), and send_init_blob().
|
private |
Definition at line 71 of file AP_GPS_MTK.h.
Referenced by read().
|
private |
Definition at line 70 of file AP_GPS_MTK.h.
Referenced by read().