|
| Mavlink () |
| Constructor.
|
|
| ~Mavlink () |
| Destructor, also kills the mavlinks task.
|
|
void | display_status () |
| Display the mavlink status.
|
|
void | display_status_streams () |
| Display the status of all enabled streams.
|
|
mavlink_message_t * | get_buffer () |
|
mavlink_status_t * | get_status () |
|
void | set_proto_version (unsigned version) |
| Set the MAVLink version. More...
|
|
int | get_uart_fd () const |
|
int | get_system_id () const |
| Get the MAVLink system id. More...
|
|
int | get_component_id () const |
| Get the MAVLink component id. More...
|
|
enum MAVLINK_MODE | get_mode () |
|
bool | get_hil_enabled () |
|
bool | get_use_hil_gps () |
|
bool | get_forward_externalsp () |
|
bool | get_flow_control_enabled () |
|
bool | get_forwarding_on () |
|
bool | is_connected () |
|
bool | broadcast_enabled () |
|
unsigned | get_free_tx_buf () |
| Get the free space in the transmit buffer. More...
|
|
int | set_hil_enabled (bool hil_enabled) |
| Enable / disable Hardware in the Loop simulation mode. More...
|
|
void | set_manual_input_mode_generation (bool generation_enabled) |
| Set manual input generation mode. More...
|
|
void | set_protocol (Protocol p) |
| Set communication protocol for this mavlink instance.
|
|
bool | get_manual_input_mode_generation () |
| Get the manual input generation mode. More...
|
|
void | begin_send () |
| This is the beginning of a MAVLINK_START_UART_SEND/MAVLINK_END_UART_SEND transaction.
|
|
void | send_bytes (const uint8_t *buf, unsigned packet_len) |
| Send bytes out on the link. More...
|
|
int | send_packet () |
| Flush the transmit buffer and send one MAVLink packet. More...
|
|
void | resend_message (mavlink_message_t *msg) |
| Resend message as is, don't change sequence number and CRC.
|
|
void | handle_message (const mavlink_message_t *msg) |
|
MavlinkOrbSubscription * | add_orb_subscription (const orb_id_t topic, int instance=0, bool disable_sharing=false) |
| Add a mavlink orb topic subscription while ensuring that only a single object exists for a given topic id and instance. More...
|
|
int | get_instance_id () const |
|
int | enable_flow_control (enum FLOW_CONTROL_MODE enabled) |
| Enable / disable hardware flow control. More...
|
|
mavlink_channel_t | get_channel () const |
|
void | configure_stream_threadsafe (const char *stream_name, float rate=-1.0f) |
|
orb_advert_t * | get_mavlink_log_pub () |
|
void | send_statustext_info (const char *string) |
| Send a status text with loglevel INFO. More...
|
|
void | send_statustext_critical (const char *string) |
| Send a status text with loglevel CRITICAL. More...
|
|
void | send_statustext_emergency (const char *string) |
| Send a status text with loglevel EMERGENCY. More...
|
|
void | send_statustext (unsigned char severity, const char *string) |
| Send a status text with loglevel, the difference from mavlink_log_xxx() is that message sent only on this mavlink connection. More...
|
|
void | send_autopilot_capabilites () |
| Send the capabilities of this autopilot in terms of the MAVLink spec.
|
|
void | send_protocol_version () |
| Send the protocol version of MAVLink.
|
|
List< MavlinkStream * > & | get_streams () |
|
float | get_rate_mult () const |
|
float | get_baudrate () |
|
void | set_has_received_messages (bool received_messages) |
|
bool | get_has_received_messages () |
|
void | set_wait_to_transmit (bool wait) |
|
bool | get_wait_to_transmit () |
|
bool | should_transmit () |
|
bool | message_buffer_write (const void *ptr, int size) |
|
void | lockMessageBufferMutex (void) |
|
void | unlockMessageBufferMutex (void) |
|
void | count_txbytes (unsigned n) |
| Count transmitted bytes.
|
|
void | count_txerrbytes (unsigned n) |
| Count bytes not transmitted because of errors.
|
|
void | count_rxbytes (unsigned n) |
| Count received bytes.
|
|
telemetry_status_s & | get_telemetry_status () |
| Get the receive status of this MAVLink link.
|
|
void | set_telemetry_status_type (uint8_t type) |
|
void | update_radio_status (const radio_status_s &radio_status) |
|
ringbuffer::RingBuffer * | get_logbuffer () |
|
unsigned | get_system_type () |
|
Protocol | get_protocol () |
|
unsigned short | get_network_port () |
|
unsigned short | get_remote_port () |
|
int | get_socket_fd () |
|
bool | get_client_source_initialized () |
|
uint64_t | get_start_time () |
|
bool | is_usb_uart () |
|
int | get_data_rate () |
|
void | set_data_rate (int rate) |
|
unsigned | get_main_loop_delay () const |
|
MavlinkShell * | get_shell () |
| get the Mavlink shell. More...
|
|
void | close_shell () |
| close the Mavlink shell if it is open
|
|
MavlinkULog * | get_ulog_streaming () |
| get ulog streaming if active, nullptr otherwise
|
|
void | try_start_ulog_streaming (uint8_t target_system, uint8_t target_component) |
|
void | request_stop_ulog_streaming () |
|
void | set_uorb_main_fd (int fd, unsigned int interval) |
|
bool | ftp_enabled () const |
|
bool | hash_check_enabled () const |
|
bool | forward_heartbeats_enabled () const |
|
bool | odometry_loopback_enabled () const |
|
struct ping_statistics_s & | get_ping_statistics () |
| Get the ping statistics of this MAVLink link.
|
|
| ModuleParams (ModuleParams *parent) |
|
void | setParent (ModuleParams *parent) |
| Sets the parent module. More...
|
|
| ModuleParams (const ModuleParams &)=delete |
|
ModuleParams & | operator= (const ModuleParams &)=delete |
|
| ModuleParams (ModuleParams &&)=delete |
|
ModuleParams & | operator= (ModuleParams &&)=delete |
|
void | setSibling (ModuleParams * sibling) |
|
const ModuleParams * | getSibling () const |
|
|
static int | start (int argc, char *argv[]) |
| Start the mavlink task. More...
|
|
static int | stream_command (int argc, char *argv[]) |
|
static int | instance_count () |
|
static Mavlink * | new_instance () |
|
static Mavlink * | get_instance (int instance) |
|
static Mavlink * | get_instance_for_device (const char *device_name) |
|
static Mavlink * | get_instance_for_network_port (unsigned long port) |
|
static int | destroy_all_instances () |
|
static int | get_status_all_instances (bool show_streams_status) |
|
static bool | instance_exists (const char *device_name, Mavlink *self) |
|
static void | forward_message (const mavlink_message_t *msg, Mavlink *self) |
|
static int | get_uart_fd (unsigned index) |
|
static const char * | mavlink_mode_str (enum MAVLINK_MODE mode) |
|
static void | set_boot_complete () |
| Set the boot complete flag on all instances. More...
|
|
static int | start_helper (int argc, char *argv[]) |
|
static bool | boot_complete () |
|