APM:Libraries
|
#include <AP_GPS_SBF.h>
Classes | |
struct | msg4001 |
struct | msg4007 |
struct | msg4014 |
struct | msg5908 |
union | msgbuffer |
struct | sbf_msg_parser_t |
Public Member Functions | |
AP_GPS_SBF (AP_GPS &_gps, AP_GPS::GPS_State &_state, AP_HAL::UARTDriver *_port) | |
AP_GPS::GPS_Status | highest_supported_status (void) |
bool | read () |
const char * | name () const override |
bool | is_configured (void) override |
void | broadcast_configuration_failure_reason (void) const override |
bool | get_lag (float &lag_sec) const override |
bool | is_healthy (void) const override |
bool | prepare_for_arming (void) override |
![]() | |
AP_GPS_Backend (AP_GPS &_gps, AP_GPS::GPS_State &_state, AP_HAL::UARTDriver *_port) | |
virtual | ~AP_GPS_Backend (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 | handle_msg (const mavlink_message_t *msg) |
virtual void | handle_gnss_msg (const AP_GPS::GPS_State &msg) |
void | broadcast_gps_type () const |
virtual void | Write_DataFlash_Log_Startup_messages () const |
Private Types | |
enum | sbf_ids { DOP = 4001, PVTGeodetic = 4007, ReceiverStatus = 4014, ExtEventPVTGeodetic = 4038, VelCovGeodetic = 5908 } |
enum | { SOFTWARE = (1 << 3), WATCHDOG = (1 << 4), CONGESTION = (1 << 6), MISSEDEVENT = (1 << 8), CPUOVERLOAD = (1 << 9), INVALIDCONFIG = (1 << 10), OUTOFGEOFENCE = (1 << 11) } |
Private Member Functions | |
bool | parse (uint8_t temp) |
bool | process_message () |
void | mount_disk (void) const |
void | unmount_disk (void) const |
void | log_ExtEventPVTGeodetic (const msg4007 &temp) |
Private Attributes | |
uint8_t | _init_blob_index = 0 |
uint32_t | _init_blob_time = 0 |
const char * | _initialisation_blob [5] |
uint32_t | _config_last_ack_time |
const char * | _port_enable = "\nSSSSSSSSSS\n" |
uint32_t | crc_error_counter = 0 |
uint32_t | RxState |
uint32_t | RxError |
bool | _has_been_armed |
struct AP_GPS_SBF::sbf_msg_parser_t | sbf_msg |
Static Private Attributes | |
static const uint8_t | SBF_PREAMBLE1 = '$' |
static const uint8_t | SBF_PREAMBLE2 = '@' |
Additional Inherited Members | |
![]() | |
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 |
![]() | |
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_SBF.h.
|
private |
Enumerator | |
---|---|
SOFTWARE | |
WATCHDOG | |
CONGESTION | |
MISSEDEVENT | |
CPUOVERLOAD | |
INVALIDCONFIG | |
OUTOFGEOFENCE |
Definition at line 201 of file AP_GPS_SBF.h.
|
private |
Enumerator | |
---|---|
DOP | |
PVTGeodetic | |
ReceiverStatus | |
ExtEventPVTGeodetic | |
VelCovGeodetic |
Definition at line 82 of file AP_GPS_SBF.h.
AP_GPS_SBF::AP_GPS_SBF | ( | AP_GPS & | _gps, |
AP_GPS::GPS_State & | _state, | ||
AP_HAL::UARTDriver * | _port | ||
) |
|
overridevirtual |
Reimplemented from AP_GPS_Backend.
Definition at line 399 of file AP_GPS_SBF.cpp.
Referenced by name().
|
inlineoverridevirtual |
Reimplemented from AP_GPS_Backend.
Definition at line 47 of file AP_GPS_SBF.h.
|
inlinevirtual |
Reimplemented from AP_GPS_Backend.
Definition at line 35 of file AP_GPS_SBF.h.
|
overridevirtual |
Reimplemented from AP_GPS_Backend.
Definition at line 408 of file AP_GPS_SBF.cpp.
Referenced by name().
|
overridevirtual |
Reimplemented from AP_GPS_Backend.
Definition at line 413 of file AP_GPS_SBF.cpp.
Referenced by get_lag().
|
private |
Definition at line 238 of file AP_GPS_SBF.cpp.
Referenced by process_message().
|
private |
Definition at line 417 of file AP_GPS_SBF.cpp.
Referenced by prepare_for_arming().
|
inlineoverridevirtual |
Implements AP_GPS_Backend.
Definition at line 40 of file AP_GPS_SBF.h.
|
private |
Definition at line 111 of file AP_GPS_SBF.cpp.
Referenced by get_lag(), and read().
|
overridevirtual |
Reimplemented from AP_GPS_Backend.
Definition at line 429 of file AP_GPS_SBF.cpp.
Referenced by get_lag().
|
private |
Definition at line 267 of file AP_GPS_SBF.cpp.
Referenced by get_lag(), and parse().
|
virtual |
Implements AP_GPS_Backend.
Definition at line 66 of file AP_GPS_SBF.cpp.
Referenced by highest_supported_status().
|
private |
Definition at line 423 of file AP_GPS_SBF.cpp.
Referenced by read().
|
private |
Definition at line 70 of file AP_GPS_SBF.h.
Referenced by AP_GPS_SBF(), parse(), and read().
|
private |
Definition at line 80 of file AP_GPS_SBF.h.
Referenced by prepare_for_arming(), and read().
|
private |
Definition at line 62 of file AP_GPS_SBF.h.
Referenced by broadcast_configuration_failure_reason(), is_configured(), parse(), and read().
|
private |
Definition at line 63 of file AP_GPS_SBF.h.
Referenced by read().
|
private |
Definition at line 64 of file AP_GPS_SBF.h.
Referenced by broadcast_configuration_failure_reason(), is_configured(), parse(), and read().
|
private |
Definition at line 72 of file AP_GPS_SBF.h.
Referenced by AP_GPS_SBF(), and read().
|
private |
Definition at line 74 of file AP_GPS_SBF.h.
Referenced by parse().
|
private |
Definition at line 76 of file AP_GPS_SBF.h.
Referenced by is_healthy(), and process_message().
|
private |
Definition at line 75 of file AP_GPS_SBF.h.
Referenced by prepare_for_arming(), process_message(), and read().
|
private |
Referenced by AP_GPS_SBF(), parse(), and process_message().
|
staticprivate |
Definition at line 59 of file AP_GPS_SBF.h.
Referenced by parse().
|
staticprivate |
Definition at line 60 of file AP_GPS_SBF.h.
Referenced by parse().