APM:Libraries
|
#include <AP_GPS_ERB.h>
Classes | |
struct | erb_dops |
struct | erb_header |
struct | erb_pos |
struct | erb_rtk |
struct | erb_stat |
struct | erb_vel |
struct | erb_ver |
union | PACKED |
Public Member Functions | |
AP_GPS_ERB (AP_GPS &_gps, AP_GPS::GPS_State &_state, AP_HAL::UARTDriver *_port) | |
bool | read () |
AP_GPS::GPS_Status | highest_supported_status (void) |
bool | supports_mavlink_gps_rtk_message () |
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 bool | is_configured (void) |
virtual void | inject_data (const uint8_t *data, uint16_t len) |
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 ERB_detect_state &state, uint8_t data) |
Private Types | |
enum | erb_protocol_bytes { PREAMBLE1 = 0x45, PREAMBLE2 = 0x52, MSG_VER = 0x01, MSG_POS = 0x02, MSG_STAT = 0x03, MSG_DOPS = 0x04, MSG_VEL = 0x05, MSG_RTK = 0x07 } |
enum | erb_fix_type { FIX_NONE = 0x00, FIX_SINGLE = 0x01, FIX_FLOAT = 0x02, FIX_FIX = 0x03 } |
Private Member Functions | |
bool | _parse_gps () |
Private Attributes | |
union AP_GPS_ERB::PACKED | _buffer |
uint8_t | _ck_a |
uint8_t | _ck_b |
uint8_t | _step |
uint8_t | _msg_id |
uint16_t | _payload_length |
uint16_t | _payload_counter |
uint8_t | _fix_count |
uint32_t | _last_pos_time |
uint32_t | _last_vel_time |
bool | _new_position:1 |
bool | _new_speed:1 |
AP_GPS::GPS_Status | next_fix |
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 27 of file AP_GPS_ERB.h.
|
private |
Enumerator | |
---|---|
FIX_NONE | |
FIX_SINGLE | |
FIX_FLOAT | |
FIX_FIX |
Definition at line 121 of file AP_GPS_ERB.h.
|
private |
Enumerator | |
---|---|
PREAMBLE1 | |
PREAMBLE2 | |
MSG_VER | |
MSG_POS | |
MSG_STAT | |
MSG_DOPS | |
MSG_VEL | |
MSG_RTK |
Definition at line 110 of file AP_GPS_ERB.h.
AP_GPS_ERB::AP_GPS_ERB | ( | AP_GPS & | _gps, |
AP_GPS::GPS_State & | _state, | ||
AP_HAL::UARTDriver * | _port | ||
) |
Definition at line 35 of file AP_GPS_ERB.cpp.
|
static |
Definition at line 241 of file AP_GPS_ERB.cpp.
Referenced by AP_GPS::detect_instance(), and supports_mavlink_gps_rtk_message().
|
private |
Definition at line 138 of file AP_GPS_ERB.cpp.
Referenced by read().
|
inlinevirtual |
Reimplemented from AP_GPS_Backend.
Definition at line 35 of file AP_GPS_ERB.h.
|
inlineoverridevirtual |
Implements AP_GPS_Backend.
Definition at line 41 of file AP_GPS_ERB.h.
|
virtual |
Implements AP_GPS_Backend.
Definition at line 51 of file AP_GPS_ERB.cpp.
|
inlinevirtual |
Reimplemented from AP_GPS_Backend.
Definition at line 37 of file AP_GPS_ERB.h.
|
private |
Referenced by _parse_gps(), and read().
|
private |
Definition at line 129 of file AP_GPS_ERB.h.
Referenced by read().
|
private |
Definition at line 130 of file AP_GPS_ERB.h.
Referenced by read().
|
private |
Definition at line 139 of file AP_GPS_ERB.h.
Referenced by _parse_gps().
|
private |
Definition at line 141 of file AP_GPS_ERB.h.
Referenced by _parse_gps().
|
private |
Definition at line 142 of file AP_GPS_ERB.h.
Referenced by _parse_gps().
|
private |
Definition at line 134 of file AP_GPS_ERB.h.
Referenced by _parse_gps(), and read().
|
private |
Definition at line 145 of file AP_GPS_ERB.h.
Referenced by _parse_gps().
|
private |
Definition at line 147 of file AP_GPS_ERB.h.
Referenced by _parse_gps().
|
private |
Definition at line 136 of file AP_GPS_ERB.h.
Referenced by read().
|
private |
Definition at line 135 of file AP_GPS_ERB.h.
Referenced by read().
|
private |
Definition at line 133 of file AP_GPS_ERB.h.
Referenced by read().
|
private |
Definition at line 153 of file AP_GPS_ERB.h.
Referenced by _parse_gps().