PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <mavlink_main.h>
Classes | |
struct | mavlink_message_buffer |
struct | ping_statistics_s |
Public Member Functions | |
Mavlink () | |
Constructor. More... | |
~Mavlink () | |
Destructor, also kills the mavlinks task. More... | |
void | display_status () |
Display the mavlink status. More... | |
void | display_status_streams () |
Display the status of all enabled streams. More... | |
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 () |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
void | send_protocol_version () |
Send the protocol version of MAVLink. More... | |
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. More... | |
void | count_txerrbytes (unsigned n) |
Count bytes not transmitted because of errors. More... | |
void | count_rxbytes (unsigned n) |
Count received bytes. More... | |
telemetry_status_s & | get_telemetry_status () |
Get the receive status of this MAVLink link. More... | |
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 () const |
int | get_socket_fd () |
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 More... | |
MavlinkULog * | get_ulog_streaming () |
get ulog streaming if active, nullptr otherwise More... | |
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. More... | |
Static Public Member Functions | |
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 int | destroy_all_instances () |
static int | get_status_all_instances (bool show_streams_status) |
static bool | serial_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 () |
static hrt_abstime & | get_first_start_time () |
Public Attributes | |
const char * | _device_name {DEFAULT_DEVICE_NAME} |
bool | _task_should_exit {false} |
Mavlink task should exit iff true. More... | |
Protected Attributes | |
Mavlink * | next {nullptr} |
Private Member Functions | |
DEFINE_PARAMETERS ((ParamInt< px4::params::MAV_SYS_ID >) _param_mav_sys_id,(ParamInt< px4::params::MAV_COMP_ID >) _param_mav_comp_id,(ParamInt< px4::params::MAV_PROTO_VER >) _param_mav_proto_ver,(ParamInt< px4::params::MAV_RADIO_ID >) _param_mav_radio_id,(ParamInt< px4::params::MAV_TYPE >) _param_mav_type,(ParamBool< px4::params::MAV_USEHILGPS >) _param_mav_usehilgps,(ParamBool< px4::params::MAV_FWDEXTSP >) _param_mav_fwdextsp,(ParamBool< px4::params::MAV_HASH_CHK_EN >) _param_mav_hash_chk_en,(ParamBool< px4::params::MAV_HB_FORW_EN >) _param_mav_hb_forw_en,(ParamBool< px4::params::MAV_ODOM_LP >) _param_mav_odom_lp,(ParamInt< px4::params::SYS_HITL >) _param_sys_hitl) perf_counter_t _loop_perf | |
void | mavlink_update_parameters () |
int | mavlink_open_uart (const int baudrate=DEFAULT_BAUD_RATE, const char *uart_name=DEFAULT_DEVICE_NAME, const bool force_flow_control=false) |
int | configure_stream (const char *stream_name, const float rate=-1.0f) |
Configure a single stream. More... | |
int | configure_streams_to_default (const char *configure_single_stream=nullptr) |
Configure default streams according to _mode for either all streams or only a single stream. More... | |
int | message_buffer_init (int size) |
void | message_buffer_destroy () |
int | message_buffer_count () |
int | message_buffer_is_empty () const |
int | message_buffer_get_ptr (void **ptr, bool *is_part) |
void | message_buffer_mark_read (int n) |
void | pass_message (const mavlink_message_t *msg) |
void | publish_telemetry_status () |
void | check_requested_subscriptions () |
void | check_radio_config () |
Check the configuration of a connected radio. More... | |
void | update_rate_mult () |
Update rate mult so total bitrate will be equal to _datarate. More... | |
void | set_channel () |
void | set_instance_id () |
int | task_main (int argc, char *argv[]) |
Main mavlink task. More... | |
Mavlink (const Mavlink &)=delete | |
Mavlink | operator= (const Mavlink &)=delete |
Private Attributes | |
int | _instance_id {0} |
bool | _transmitting_enabled {true} |
bool | _transmitting_enabled_commanded {false} |
bool | _first_heartbeat_sent {false} |
orb_advert_t | _mavlink_log_pub {nullptr} |
uORB::PublicationQueued< telemetry_status_s > | _telem_status_pub {ORB_ID(telemetry_status)} |
bool | _task_running {true} |
mavlink_message_t | _mavlink_buffer {} |
mavlink_status_t | _mavlink_status {} |
bool | _hil_enabled {false} |
Hardware In the Loop mode. More... | |
bool | _generate_rc {false} |
Generate RC messages from manual input MAVLink messages. More... | |
bool | _is_usb_uart {false} |
Port is USB. More... | |
bool | _wait_to_transmit {false} |
Wait to transmit until received messages. More... | |
bool | _received_messages {false} |
Whether we've received valid mavlink messages. More... | |
unsigned | _main_loop_delay {1000} |
mainloop delay, depends on data rate More... | |
List< MavlinkOrbSubscription * > | _subscriptions |
List< MavlinkStream * > | _streams |
MavlinkShell * | _mavlink_shell {nullptr} |
MavlinkULog * | _mavlink_ulog {nullptr} |
volatile bool | _mavlink_ulog_stop_requested {false} |
MAVLINK_MODE | _mode {MAVLINK_MODE_NORMAL} |
mavlink_channel_t | _channel {MAVLINK_COMM_0} |
ringbuffer::RingBuffer | _logbuffer {5, sizeof(mavlink_log_s)} |
pthread_t | _receive_thread {} |
bool | _forwarding_on {false} |
bool | _ftp_on {false} |
int | _uart_fd {-1} |
int | _baudrate {57600} |
int | _datarate {1000} |
data rate for normal streams (attitude, position, etc.) More... | |
float | _rate_mult {1.0f} |
bool | _radio_status_available {false} |
bool | _radio_status_critical {false} |
float | _radio_status_mult {1.0f} |
unsigned int | _mavlink_param_queue_index {0} |
If the queue index is not at 0, the queue sending logic will send parameters from the current index to len - 1, the end of the param list. More... | |
bool | _mavlink_link_termination_allowed {false} |
char * | _subscribe_to_stream {nullptr} |
float | _subscribe_to_stream_rate {0.0f} |
rate of stream to subscribe to (0=disable, -1=unlimited, -2=default) More... | |
bool | _udp_initialised {false} |
FLOW_CONTROL_MODE | _flow_control_mode {Mavlink::FLOW_CONTROL_OFF} |
uint64_t | _last_write_success_time {0} |
uint64_t | _last_write_try_time {0} |
uint64_t | _mavlink_start_time {0} |
int32_t | _protocol_version_switch {-1} |
int32_t | _protocol_version {0} |
unsigned | _bytes_tx {0} |
unsigned | _bytes_txerr {0} |
unsigned | _bytes_rx {0} |
uint64_t | _bytes_timestamp {0} |
const char * | _interface_name {nullptr} |
int | _socket_fd {-1} |
Protocol | _protocol {Protocol::SERIAL} |
radio_status_s | _rstatus {} |
telemetry_status_s | _tstatus {} |
ping_statistics_s | _ping_stats {} |
mavlink_message_buffer | _message_buffer {} |
pthread_mutex_t | _message_buffer_mutex {} |
pthread_mutex_t | _send_mutex {} |
perf_counter_t | _loop_interval_perf {perf_alloc(PC_INTERVAL, "mavlink_int")} |
loop performance counter More... | |
Static Private Attributes | |
static bool | _boot_complete = false |
static constexpr int | MAVLINK_MAX_INSTANCES {4} |
static constexpr int | MAVLINK_MIN_INTERVAL {1500} |
static constexpr int | MAVLINK_MAX_INTERVAL {10000} |
static constexpr float | MAVLINK_MIN_MULTIPLIER {0.0005f} |
static constexpr unsigned | RADIO_BUFFER_CRITICAL_LOW_PERCENTAGE = 25 |
static constexpr unsigned | RADIO_BUFFER_LOW_PERCENTAGE = 35 |
static constexpr unsigned | RADIO_BUFFER_HALF_PERCENTAGE = 50 |
static hrt_abstime | _first_start_time = {0} |
Definition at line 105 of file mavlink_main.h.
Enumerator | |
---|---|
BROADCAST_MODE_OFF | |
BROADCAST_MODE_ON | |
BROADCAST_MODE_MULTICAST |
Definition at line 202 of file mavlink_main.h.
Enumerator | |
---|---|
FLOW_CONTROL_OFF | |
FLOW_CONTROL_AUTO | |
FLOW_CONTROL_ON |
Definition at line 208 of file mavlink_main.h.
Definition at line 187 of file mavlink_main.h.
Mavlink::Mavlink | ( | ) |
Constructor.
Definition at line 164 of file mavlink_main.cpp.
References _first_start_time, hrt_absolute_time(), mavlink_system, and mavlink_update_parameters().
Referenced by start_helper().
Mavlink::~Mavlink | ( | ) |
Destructor, also kills the mavlinks task.
Definition at line 188 of file mavlink_main.cpp.
References _loop_interval_perf, _task_running, _task_should_exit, and perf_free().
|
privatedelete |
MavlinkOrbSubscription * Mavlink::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.
topic | orb topic id |
instance | topic instance |
disable_sharing | if true, force creating a new instance |
Definition at line 1258 of file mavlink_main.cpp.
References _subscriptions, List::add(), and ll40ls::instance.
Referenced by MavlinkStreamActuatorControlTarget< N >::MavlinkStreamActuatorControlTarget(), MavlinkStreamBatteryStatus::MavlinkStreamBatteryStatus(), MavlinkStreamHighLatency2::MavlinkStreamHighLatency2(), MavlinkStreamSysStatus::MavlinkStreamSysStatus(), send_autopilot_capabilites(), and task_main().
|
inline |
This is the beginning of a MAVLINK_START_UART_SEND/MAVLINK_END_UART_SEND transaction.
Definition at line 324 of file mavlink_main.h.
References tap_esc_common::send_packet().
Referenced by mavlink_start_uart_send().
|
inlinestatic |
Definition at line 483 of file mavlink_main.h.
Referenced by MavlinkReceiver::Run().
|
private |
Check the configuration of a connected radio.
This convenience function allows to re-configure a connected radio without removing it from the main system harness.
Definition at line 2614 of file mavlink_main.cpp.
References _tstatus, _uart_fd, and telemetry_status_s::type.
Referenced by task_main().
|
private |
Definition at line 2523 of file mavlink_main.cpp.
References _device_name, _subscribe_to_stream, _subscribe_to_stream_rate, configure_stream(), configure_streams_to_default(), f(), get_protocol(), and SERIAL.
Referenced by task_main().
void Mavlink::close_shell | ( | ) |
close the Mavlink shell if it is open
Definition at line 1500 of file mavlink_main.cpp.
References _mavlink_shell.
Referenced by MavlinkReceiver::handle_message_serial_control().
|
private |
Configure a single stream.
stream_name | |
rate | streaming rate in Hz, -1 = unlimited rate |
Definition at line 1279 of file mavlink_main.cpp.
References _streams, create_mavlink_stream(), f(), OK, and MavlinkStream::set_interval().
Referenced by check_requested_subscriptions(), configure_streams_to_default(), set_hil_enabled(), and task_main().
void Mavlink::configure_stream_threadsafe | ( | const char * | stream_name, |
float | rate = -1.0f |
||
) |
Definition at line 1332 of file mavlink_main.cpp.
References _subscribe_to_stream, _subscribe_to_stream_rate, _task_should_exit, and MAIN_LOOP_DELAY.
Referenced by MavlinkReceiver::handle_message_command_both(), MavlinkReceiver::set_message_interval(), and stream_command().
|
private |
Configure default streams according to _mode for either all streams or only a single stream.
configure_single_stream | if nullptr, configure all streams, else only a single stream |
Definition at line 1591 of file mavlink_main.cpp.
References _mode, configure_stream(), f(), MAVLINK_MODE_CONFIG, MAVLINK_MODE_CUSTOM, MAVLINK_MODE_EXTVISION, MAVLINK_MODE_EXTVISIONMIN, MAVLINK_MODE_IRIDIUM, MAVLINK_MODE_MAGIC, MAVLINK_MODE_MINIMAL, MAVLINK_MODE_NORMAL, MAVLINK_MODE_ONBOARD, and MAVLINK_MODE_OSD.
Referenced by check_requested_subscriptions(), and task_main().
|
inline |
Count received bytes.
Definition at line 444 of file mavlink_main.h.
Referenced by MavlinkReceiver::Run().
|
inline |
Count transmitted bytes.
Definition at line 434 of file mavlink_main.h.
Referenced by send_bytes().
|
inline |
Count bytes not transmitted because of errors.
Definition at line 439 of file mavlink_main.h.
Referenced by send_bytes().
|
inlineprivate |
Definition at line 663 of file mavlink_main.h.
References PC_ELAPSED, and perf_alloc.
|
static |
Definition at line 357 of file mavlink_main.cpp.
References _mavlink_instances, _task_running, _task_should_exit, LL_DELETE, next, and OK.
Referenced by mavlink_main().
void Mavlink::display_status | ( | ) |
Display the mavlink status.
Definition at line 2749 of file mavlink_main.cpp.
References _baudrate, _channel, _datarate, _device_name, _flow_control_mode, _ftp_on, _mavlink_ulog, _mode, _ping_stats, _protocol, _protocol_version, _rate_mult, _rstatus, _transmitting_enabled, _tstatus, MavlinkULog::current_data_rate(), Mavlink::ping_statistics_s::dropped_packets, radio_status_s::fix, telemetry_status_s::heartbeat_time, hrt_elapsed_time(), Mavlink::ping_statistics_s::last_ping_time, Mavlink::ping_statistics_s::last_rtt, mavlink_mode_str(), Mavlink::ping_statistics_s::max_rtt, MavlinkULog::maximum_data_rate(), Mavlink::ping_statistics_s::mean_rtt, Mavlink::ping_statistics_s::min_rtt, radio_status_s::noise, telemetry_status_s::rate_rx, telemetry_status_s::rate_tx, telemetry_status_s::rate_txerr, radio_status_s::remote_noise, radio_status_s::remote_rssi, radio_status_s::rssi, radio_status_s::rxerrors, SERIAL, telemetry_status_s::timestamp, radio_status_s::txbuf, and telemetry_status_s::type.
Referenced by get_status_all_instances().
void Mavlink::display_status_streams | ( | ) |
Display the status of all enabled streams.
Definition at line 2838 of file mavlink_main.cpp.
References _rate_mult, and _streams.
Referenced by get_status_all_instances().
int Mavlink::enable_flow_control | ( | enum FLOW_CONTROL_MODE | enabled | ) |
Enable / disable hardware flow control.
enabled | True if hardware flow control should be enabled |
Definition at line 688 of file mavlink_main.cpp.
References _flow_control_mode, _is_usb_uart, _uart_fd, FLOW_CONTROL_OFF, and OK.
Referenced by get_free_tx_buf(), and mavlink_open_uart().
|
inline |
Definition at line 517 of file mavlink_main.h.
|
static |
Definition at line 446 of file mavlink_main.cpp.
References LL_FOREACH, and pass_message().
Referenced by handle_message().
|
inline |
Definition at line 514 of file mavlink_main.h.
Referenced by publish_telemetry_status(), and MavlinkReceiver::Run().
|
inline |
Definition at line 417 of file mavlink_main.h.
Referenced by MavlinkReceiver::Run().
|
inline |
Definition at line 146 of file mavlink_main.h.
Referenced by mavlink_get_channel_buffer().
|
inline |
Definition at line 365 of file mavlink_main.h.
References f().
Referenced by MavlinkFTP::_getServerChannel(), MavlinkLogHandler::_log_send_data(), MavlinkLogHandler::_log_send_listing(), MavlinkFTP::_process_request(), MavlinkFTP::_reply(), MavlinkReceiver::get_message_interval(), MavlinkParametersManager::handle_message(), MavlinkTimesync::handle_message(), MavlinkReceiver::handle_message_command_ack(), MavlinkReceiver::handle_message_heartbeat(), MavlinkReceiver::handle_message_ping(), MavlinkReceiver::handle_message_radio_status(), MavlinkReceiver::Run(), MavlinkStreamHighLatency2::send(), MavlinkStreamHeartbeat::send(), MavlinkStreamStatustext::send(), MavlinkStreamCommandLong::send(), MavlinkStreamSysStatus::send(), MavlinkStreamBatteryStatus::send(), MavlinkStreamHighresIMU::send(), MavlinkStreamScaledIMU::send(), MavlinkStreamScaledIMU2::send(), MavlinkStreamScaledIMU3::send(), MavlinkStreamAttitude::send(), MavlinkStreamAttitudeQuaternion::send(), MavlinkStreamVFRHUD::send(), MavlinkStreamGPSRawInt::send(), MavlinkStreamGPS2Raw::send(), MavlinkStreamSystemTime::send(), MavlinkStreamTimesync::send(), MavlinkStreamADSBVehicle::send(), MavlinkStreamUTMGlobalPosition::send(), MavlinkStreamCollision::send(), MavlinkStreamCameraTrigger::send(), MavlinkStreamCameraImageCaptured::send(), MavlinkStreamGlobalPositionInt::send(), MavlinkStreamOdometry::send(), MavlinkStreamLocalPositionNED::send(), MavlinkStreamEstimatorStatus::send(), MavlinkStreamAttPosMocap::send(), MavlinkStreamHomePosition::send(), MavlinkStreamServoOutputRaw< N >::send(), MavlinkStreamActuatorControlTarget< N >::send(), MavlinkStreamHILActuatorControls::send(), MavlinkStreamPositionTargetGlobalInt::send(), MavlinkStreamLocalPositionSetpoint::send(), MavlinkStreamAttitudeTarget::send(), MavlinkStreamRCChannels::send(), MavlinkStreamManualControl::send(), MavlinkStreamTrajectoryRepresentationWaypoints::send(), MavlinkStreamOpticalFlowRad::send(), MavlinkStreamNamedValueFloat::send(), MavlinkStreamDebug::send(), MavlinkStreamDebugVect::send(), MavlinkStreamDebugFloatArray::send(), MavlinkStreamNavControllerOutput::send(), MavlinkStreamCameraCapture::send(), MavlinkStreamDistanceSensor::send(), MavlinkStreamExtendedSysState::send(), MavlinkStreamAltitude::send(), MavlinkStreamWind::send(), MavlinkStreamMountOrientation::send(), MavlinkStreamGroundTruth::send(), MavlinkStreamPing::send(), MavlinkStreamOrbitStatus::send(), MavlinkStreamObstacleDistance::send(), send_autopilot_capabilites(), MavlinkReceiver::send_flight_information(), MavlinkMissionManager::send_mission_ack(), MavlinkMissionManager::send_mission_count(), MavlinkMissionManager::send_mission_current(), MavlinkMissionManager::send_mission_item(), MavlinkMissionManager::send_mission_item_reached(), MavlinkMissionManager::send_mission_request(), MavlinkParametersManager::send_one(), MavlinkParametersManager::send_param(), send_protocol_version(), MavlinkReceiver::send_storage_information(), MavlinkParametersManager::send_uavcan(), and task_main().
|
inline |
Get the MAVLink component id.
Definition at line 183 of file mavlink_main.h.
References mavlink_system.
Referenced by MavlinkFTP::_getServerComponentId().
|
inline |
Definition at line 487 of file mavlink_main.h.
Referenced by MavlinkReceiver::handle_message_command_both().
|
inlinestatic |
Definition at line 535 of file mavlink_main.h.
Referenced by MavlinkReceiver::Run().
|
inline |
Definition at line 260 of file mavlink_main.h.
Referenced by publish_telemetry_status(), and update_rate_mult().
|
inline |
Definition at line 258 of file mavlink_main.h.
Referenced by MavlinkReceiver::handle_message_set_attitude_target(), MavlinkReceiver::handle_message_set_position_target_global_int(), and MavlinkReceiver::handle_message_set_position_target_local_ned().
|
inline |
Definition at line 262 of file mavlink_main.h.
Referenced by handle_message(), and publish_telemetry_status().
unsigned Mavlink::get_free_tx_buf | ( | ) |
Get the free space in the transmit buffer.
Definition at line 747 of file mavlink_main.cpp.
References _flow_control_mode, _last_write_success_time, _last_write_try_time, _uart_fd, enable_flow_control(), FLOW_CONTROL_AUTO, FLOW_CONTROL_DISABLE_THRESHOLD, FLOW_CONTROL_OFF, get_protocol(), and hrt_elapsed_time().
Referenced by MavlinkFTP::send(), MavlinkParametersManager::send(), MavlinkLogHandler::send(), send_bytes(), MavlinkParametersManager::send_param(), MavlinkParametersManager::send_untransmitted(), and task_main().
|
inline |
Definition at line 421 of file mavlink_main.h.
|
inline |
Definition at line 254 of file mavlink_main.h.
Referenced by MavlinkReceiver::handle_message().
|
static |
Definition at line 314 of file mavlink_main.cpp.
References get_instance_id(), and LL_FOREACH.
Referenced by get_uart_fd(), mavlink_end_uart_send(), mavlink_get_channel_buffer(), mavlink_get_channel_status(), mavlink_send_uart_bytes(), and mavlink_start_uart_send().
|
static |
Definition at line 327 of file mavlink_main.cpp.
References _device_name, and LL_FOREACH.
Referenced by stream_command().
|
inline |
Definition at line 356 of file mavlink_main.h.
References tap_esc_common::enable_flow_control().
Referenced by get_instance(), MavlinkReceiver::handle_message_manual_control(), and MavlinkReceiver::Run().
|
inline |
Definition at line 455 of file mavlink_main.h.
Referenced by MavlinkStreamStatustext::get_size(), and MavlinkStreamStatustext::send().
|
inline |
Definition at line 490 of file mavlink_main.h.
Referenced by MavlinkStream::update().
|
inline |
Get the manual input generation mode.
Definition at line 319 of file mavlink_main.h.
Referenced by MavlinkReceiver::handle_message_manual_control().
|
inline |
Definition at line 369 of file mavlink_main.h.
|
inline |
Definition at line 252 of file mavlink_main.h.
References _mode.
Referenced by MavlinkMissionManager::check_active_mission(), MavlinkMissionManager::send(), and set_boot_complete().
|
inline |
Get the ping statistics of this MAVLink link.
Definition at line 533 of file mavlink_main.h.
Referenced by MavlinkReceiver::handle_message_ping().
|
inline |
Definition at line 459 of file mavlink_main.h.
References linux_pwm_out::_protocol.
Referenced by check_requested_subscriptions(), get_free_tx_buf(), MavlinkReceiver::Run(), MavlinkParametersManager::send(), send_bytes(), send_packet(), serial_instance_exists(), set_boot_complete(), and task_main().
|
inline |
Definition at line 415 of file mavlink_main.h.
Referenced by MavlinkStream::update().
MavlinkShell * Mavlink::get_shell | ( | ) |
get the Mavlink shell.
Create a new one if there isn't one. It is always created via MavlinkReceiver thread. Returns nullptr if shell cannot be created
Definition at line 1477 of file mavlink_main.cpp.
References _mavlink_shell, and MavlinkShell::start().
Referenced by MavlinkReceiver::handle_message_serial_control().
|
inline |
Definition at line 461 of file mavlink_main.h.
Referenced by MavlinkReceiver::Run().
|
inline |
Definition at line 481 of file mavlink_main.h.
Referenced by MavlinkReceiver::Run().
|
inline |
Definition at line 148 of file mavlink_main.h.
References msg.
Referenced by mavlink_get_channel_status(), MavlinkReceiver::Run(), and set_proto_version().
|
static |
Definition at line 401 of file mavlink_main.cpp.
References _mavlink_instances, display_status(), display_status_streams(), and next.
Referenced by mavlink_main().
|
inline |
Definition at line 413 of file mavlink_main.h.
Referenced by MavlinkReceiver::get_message_interval().
|
inline |
Get the MAVLink system id.
Definition at line 176 of file mavlink_main.h.
References mavlink_system.
Referenced by MavlinkFTP::_getServerSystemId(), MavlinkReceiver::handle_message_manual_control(), and MavlinkReceiver::handle_message_rc_channels_override().
|
inline |
Definition at line 457 of file mavlink_main.h.
Referenced by MavlinkReceiver::fill_thrust(), MavlinkStreamHighLatency2::send(), MavlinkStreamHeartbeat::send(), and MavlinkStreamHILActuatorControls::send().
|
inline |
Get the receive status of this MAVLink link.
Definition at line 449 of file mavlink_main.h.
Referenced by MavlinkReceiver::handle_message_heartbeat().
|
static |
Definition at line 491 of file mavlink_main.cpp.
References get_instance(), and get_uart_fd().
Referenced by get_uart_fd(), and MavlinkReceiver::Run().
|
inline |
Definition at line 169 of file mavlink_main.h.
|
inline |
get ulog streaming if active, nullptr otherwise
Definition at line 499 of file mavlink_main.h.
Referenced by MavlinkReceiver::handle_message_logging_ack().
|
inline |
Definition at line 256 of file mavlink_main.h.
Referenced by MavlinkReceiver::handle_message().
|
inline |
Definition at line 423 of file mavlink_main.h.
void Mavlink::handle_message | ( | const mavlink_message_t * | msg | ) |
Definition at line 1137 of file mavlink_main.cpp.
References forward_message(), and get_forwarding_on().
Referenced by MavlinkReceiver::Run().
|
inline |
Definition at line 516 of file mavlink_main.h.
Referenced by MavlinkParametersManager::handle_message().
|
static |
Definition at line 301 of file mavlink_main.cpp.
References LL_FOREACH.
Referenced by set_instance_id(), and start().
|
inline |
Definition at line 264 of file mavlink_main.h.
References hrt_elapsed_time().
Referenced by MavlinkStreamStatustext::send().
|
inline |
Definition at line 485 of file mavlink_main.h.
Referenced by MavlinkParametersManager::send().
|
inline |
Definition at line 428 of file mavlink_main.h.
|
inlinestatic |
Definition at line 214 of file mavlink_main.h.
Referenced by display_status(), and task_main().
|
private |
Definition at line 503 of file mavlink_main.cpp.
References _baudrate, _is_usb_uart, _uart_fd, B1000000, B460800, B500000, B921600, enable_flow_control(), FLOW_CONTROL_AUTO, FLOW_CONTROL_ON, hrt_absolute_time(), ORB_ID, and set_telemetry_status_type().
Referenced by task_main().
|
private |
Definition at line 215 of file mavlink_main.cpp.
References _protocol_version_switch, and set_proto_version().
Referenced by Mavlink(), and task_main().
|
private |
Definition at line 1392 of file mavlink_main.cpp.
References _message_buffer, Mavlink::mavlink_message_buffer::read_ptr, Mavlink::mavlink_message_buffer::size, and Mavlink::mavlink_message_buffer::write_ptr.
|
private |
Definition at line 1383 of file mavlink_main.cpp.
References _message_buffer, Mavlink::mavlink_message_buffer::data, Mavlink::mavlink_message_buffer::read_ptr, Mavlink::mavlink_message_buffer::size, and Mavlink::mavlink_message_buffer::write_ptr.
Referenced by task_main().
|
private |
Definition at line 1438 of file mavlink_main.cpp.
References _message_buffer, Mavlink::mavlink_message_buffer::data, Mavlink::mavlink_message_buffer::read_ptr, Mavlink::mavlink_message_buffer::size, and Mavlink::mavlink_message_buffer::write_ptr.
Referenced by task_main().
|
private |
Definition at line 1362 of file mavlink_main.cpp.
References _message_buffer, Mavlink::mavlink_message_buffer::data, OK, Mavlink::mavlink_message_buffer::read_ptr, Mavlink::mavlink_message_buffer::size, and Mavlink::mavlink_message_buffer::write_ptr.
Referenced by task_main().
|
inlineprivate |
Definition at line 717 of file mavlink_main.h.
|
inlineprivate |
Definition at line 721 of file mavlink_main.h.
Referenced by task_main().
bool Mavlink::message_buffer_write | ( | const void * | ptr, |
int | size | ||
) |
Definition at line 1404 of file mavlink_main.cpp.
References _message_buffer, Mavlink::mavlink_message_buffer::data, Mavlink::mavlink_message_buffer::read_ptr, Mavlink::mavlink_message_buffer::size, and Mavlink::mavlink_message_buffer::write_ptr.
Referenced by pass_message().
|
static |
|
inline |
Definition at line 518 of file mavlink_main.h.
Referenced by MavlinkStreamOdometry::send().
|
private |
Definition at line 1465 of file mavlink_main.cpp.
References _forwarding_on, _message_buffer_mutex, and message_buffer_write().
Referenced by forward_message().
|
private |
Definition at line 2595 of file mavlink_main.cpp.
References _datarate, _mode, _protocol_version, _rate_mult, _streams, _telem_status_pub, _tstatus, telemetry_status_s::data_rate, telemetry_status_s::flow_control, telemetry_status_s::forwarding, telemetry_status_s::ftp, ftp_enabled(), get_flow_control_enabled(), get_forwarding_on(), hrt_absolute_time(), telemetry_status_s::mavlink_v2, telemetry_status_s::mode, uORB::PublicationQueued< T >::publish(), telemetry_status_s::rate_multiplier, List::size(), telemetry_status_s::streams, and telemetry_status_s::timestamp.
Referenced by task_main().
|
inline |
Definition at line 506 of file mavlink_main.h.
References fd.
Referenced by MavlinkReceiver::handle_message_command_both().
|
inline |
Resend message as is, don't change sequence number and CRC.
Definition at line 343 of file mavlink_main.h.
Referenced by task_main().
void Mavlink::send_autopilot_capabilites | ( | ) |
Send the capabilities of this autopilot in terms of the MAVLink spec.
Definition at line 1168 of file mavlink_main.cpp.
References add_orb_subscription(), CONFIG_CDCACM_PRODUCTID, get_channel(), mavlink_system, msg, ORB_ID, px4_board_version(), px4_firmware_vendor_version(), px4_firmware_version(), px4_firmware_version_binary(), px4_os_version(), and px4_os_version_binary().
Referenced by MavlinkReceiver::handle_message_command_both(), and task_main().
void Mavlink::send_bytes | ( | const uint8_t * | buf, |
unsigned | packet_len | ||
) |
Send bytes out on the link.
On a network port these might actually get buffered to form a packet.
Definition at line 852 of file mavlink_main.cpp.
References _interface_name, _last_write_success_time, _last_write_try_time, _mavlink_start_time, _socket_fd, _uart_fd, count_txbytes(), count_txerrbytes(), get_free_tx_buf(), get_protocol(), hrt_absolute_time(), SERIAL, and write().
Referenced by mavlink_send_uart_bytes().
int Mavlink::send_packet | ( | ) |
Flush the transmit buffer and send one MAVLink packet.
Definition at line 790 of file mavlink_main.cpp.
References _mode, _send_mutex, _socket_fd, _tstatus, get_protocol(), telemetry_status_s::heartbeat_time, hrt_elapsed_time(), and MAVLINK_MODE_ONBOARD.
Referenced by mavlink_end_uart_send().
void Mavlink::send_protocol_version | ( | ) |
Send the protocol version of MAVLink.
Definition at line 1236 of file mavlink_main.cpp.
References _protocol_version, get_channel(), msg, px4_mavlink_lib_version_binary(), and set_proto_version().
Referenced by MavlinkReceiver::handle_message_command_both().
void Mavlink::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.
Useful for reporting communication specific, not system-wide info only to client interested in it. Message will be not sent immediately but queued in buffer as for mavlink_log_xxx().
string | the message to send (will be capped by mavlink max string length) |
severity | the log level |
void Mavlink::send_statustext_critical | ( | const char * | string | ) |
Send a status text with loglevel CRITICAL.
string | the message to send (will be capped by mavlink max string length) |
Definition at line 1156 of file mavlink_main.cpp.
References _mavlink_log_pub, and mavlink_log_critical.
Referenced by MavlinkReceiver::handle_message_command_both(), MavlinkMissionManager::handle_mission_ack(), MavlinkMissionManager::handle_mission_clear_all(), MavlinkMissionManager::handle_mission_count(), MavlinkMissionManager::handle_mission_item_both(), MavlinkMissionManager::handle_mission_request_both(), MavlinkMissionManager::handle_mission_request_list(), MavlinkMissionManager::handle_mission_set_current(), MavlinkMissionManager::send(), MavlinkMissionManager::send_mission_current(), MavlinkMissionManager::send_mission_item(), MavlinkMissionManager::send_mission_request(), MavlinkMissionManager::update_active_mission(), MavlinkMissionManager::update_geofence_count(), and MavlinkMissionManager::update_safepoint_count().
void Mavlink::send_statustext_emergency | ( | const char * | string | ) |
Send a status text with loglevel EMERGENCY.
string | the message to send (will be capped by mavlink max string length) |
Definition at line 1162 of file mavlink_main.cpp.
References _mavlink_log_pub, and mavlink_log_emergency.
void Mavlink::send_statustext_info | ( | const char * | string | ) |
Send a status text with loglevel INFO.
string | the message to send (will be capped by mavlink max string length) |
Definition at line 1150 of file mavlink_main.cpp.
References _mavlink_log_pub, and mavlink_log_info.
Referenced by MavlinkParametersManager::handle_message().
|
static |
Definition at line 428 of file mavlink_main.cpp.
References _device_name, _mavlink_instances, get_protocol(), next, and SERIAL.
Referenced by task_main().
|
static |
Set the boot complete flag on all instances.
Setting the flag unblocks parameter transmissions, which are gated beforehand to ensure that the system is fully initialized.
Definition at line 2997 of file mavlink_main.cpp.
References _boot_complete, get_mode(), get_protocol(), LL_FOREACH, and MAVLINK_MODE_ONBOARD.
Referenced by mavlink_main(), and MavlinkReceiver::Run().
|
private |
Definition at line 234 of file mavlink_main.cpp.
References _channel, and _instance_id.
Referenced by task_main().
|
inline |
Definition at line 488 of file mavlink_main.h.
Referenced by MavlinkReceiver::set_message_interval().
|
inline |
Definition at line 420 of file mavlink_main.h.
Referenced by MavlinkReceiver::handle_message().
int Mavlink::set_hil_enabled | ( | bool | hil_enabled | ) |
Enable / disable Hardware in the Loop simulation mode.
hil_enabled | The new HIL enable/disable state. |
Definition at line 718 of file mavlink_main.cpp.
References _datarate, _hil_enabled, configure_stream(), f(), and OK.
Referenced by task_main().
|
private |
Definition at line 280 of file mavlink_main.cpp.
References _instance_id, and instance_count().
Referenced by task_main().
|
inline |
Set manual input generation mode.
Set to true to generate RC_INPUT messages on the system bus from MAVLink messages.
generation_enabled | If set to true, generate RC_INPUT messages |
Definition at line 307 of file mavlink_main.h.
Referenced by task_main().
void Mavlink::set_proto_version | ( | unsigned | version | ) |
Set the MAVLink version.
Currently supporting v1 and v2
version | MAVLink version |
Definition at line 286 of file mavlink_main.cpp.
References _protocol_version, _protocol_version_switch, and get_status().
Referenced by mavlink_update_parameters(), MavlinkReceiver::Run(), and send_protocol_version().
|
inline |
Set communication protocol for this mavlink instance.
Definition at line 312 of file mavlink_main.h.
References linux_pwm_out::_protocol.
Referenced by task_main().
|
inline |
Definition at line 451 of file mavlink_main.h.
Referenced by mavlink_open_uart(), task_main(), update_radio_status(), and update_rate_mult().
void Mavlink::set_uorb_main_fd | ( | int | fd, |
unsigned int | interval | ||
) |
|
inline |
Definition at line 422 of file mavlink_main.h.
|
inline |
Definition at line 424 of file mavlink_main.h.
Referenced by MavlinkStreamHighLatency2::send(), and task_main().
|
static |
Start the mavlink task.
Definition at line 2690 of file mavlink_main.cpp.
References MavlinkCommandSender::initialize(), MavlinkULog::initialize(), instance_count(), MAVLINK_MAX_INSTANCES, MAVLINK_NET_ADDED_STACK, and start_helper().
Referenced by mavlink_main().
|
static |
Definition at line 2666 of file mavlink_main.cpp.
References _task_running, ll40ls::instance, Mavlink(), and task_main().
Referenced by start().
|
static |
Definition at line 2872 of file mavlink_main.cpp.
References configure_stream_threadsafe(), DEFAULT_DEVICE_NAME, device_name, f(), get_instance_for_device(), OK, and usage().
Referenced by mavlink_main().
|
private |
Main mavlink task.
Definition at line 1834 of file mavlink_main.cpp.
References _baudrate, _bytes_rx, _bytes_timestamp, _bytes_tx, _bytes_txerr, _channel, _datarate, _device_name, _first_heartbeat_sent, _forwarding_on, _ftp_on, _interface_name, _is_usb_uart, _logbuffer, _loop_interval_perf, _main_loop_delay, _mavlink_log_pub, _mavlink_shell, _mavlink_ulog, _mavlink_ulog_stop_requested, _message_buffer_mutex, _mode, _receive_thread, _send_mutex, _socket_fd, _streams, _subscribe_to_stream, _subscriptions, _task_should_exit, _transmitting_enabled, _transmitting_enabled_commanded, _tstatus, _uart_fd, _wait_to_transmit, add_orb_subscription(), MavlinkShell::available(), BROADCAST_MODE_MULTICAST, check_radio_config(), check_requested_subscriptions(), List::clear(), configure_stream(), configure_streams_to_default(), dt, f(), get_channel(), get_free_tx_buf(), get_protocol(), MavlinkULog::handle_update(), telemetry_status_s::heartbeat_time, vehicle_status_s::high_latency_data_link_lost, vehicle_status_s::hil_state, hrt_absolute_time(), hrt_abstime, hrt_elapsed_time(), LL_APPEND, MAIN_LOOP_DELAY, mavlink_and_console_log_info, MAVLINK_MAX_INTERVAL, MAVLINK_MIN_INTERVAL, MAVLINK_MODE_CONFIG, MAVLINK_MODE_COUNT, MAVLINK_MODE_CUSTOM, MAVLINK_MODE_EXTVISION, MAVLINK_MODE_EXTVISIONMIN, MAVLINK_MODE_IRIDIUM, MAVLINK_MODE_MAGIC, MAVLINK_MODE_MINIMAL, MAVLINK_MODE_NORMAL, MAVLINK_MODE_ONBOARD, MAVLINK_MODE_OSD, mavlink_mode_str(), mavlink_open_uart(), mavlink_update_parameters(), MAX_DATA_RATE, message_buffer_destroy(), message_buffer_get_ptr(), message_buffer_init(), message_buffer_mark_read(), msg, OK, ORB_ID, perf_begin(), perf_count(), perf_end(), publish_telemetry_status(), telemetry_status_s::rate_rx, telemetry_status_s::rate_tx, telemetry_status_s::rate_txerr, vehicle_status_s::rc_input_mode, MavlinkShell::read(), MavlinkReceiver::receive_start(), resend_message(), send_autopilot_capabilites(), SERIAL, serial_instance_exists(), set_channel(), set_hil_enabled(), set_instance_id(), set_manual_input_mode_generation(), set_protocol(), set_telemetry_status_type(), should_transmit(), MavlinkULog::start_ack_received(), status, MavlinkULog::stop(), MavlinkOrbSubscription::subscribe_from_beginning(), vehicle_command_ack_s::timestamp, telemetry_status_s::timestamp, MavlinkOrbSubscription::update(), MavlinkOrbSubscription::update_if_changed(), update_rate_mult(), and usage().
Referenced by start_helper().
|
inline |
Definition at line 500 of file mavlink_main.h.
References f(), and MavlinkULog::try_start().
Referenced by MavlinkReceiver::handle_message_command_both().
|
inline |
Definition at line 429 of file mavlink_main.h.
void Mavlink::update_radio_status | ( | const radio_status_s & | radio_status | ) |
Definition at line 1567 of file mavlink_main.cpp.
References _radio_status_available, _radio_status_critical, _radio_status_mult, _rstatus, RADIO_BUFFER_CRITICAL_LOW_PERCENTAGE, RADIO_BUFFER_HALF_PERCENTAGE, RADIO_BUFFER_LOW_PERCENTAGE, set_telemetry_status_type(), and radio_status_s::txbuf.
Referenced by MavlinkReceiver::handle_message_radio_status().
|
private |
Update rate mult so total bitrate will be equal to _datarate.
Definition at line 1509 of file mavlink_main.cpp.
References _datarate, _instance_id, _mavlink_ulog, _radio_status_available, _radio_status_critical, _radio_status_mult, _rate_mult, _rstatus, _streams, _tstatus, math::constrain(), MavlinkULog::current_data_rate(), f(), get_flow_control_enabled(), hrt_elapsed_time(), telemetry_status_s::rate_tx, telemetry_status_s::rate_txerr, set_telemetry_status_type(), and radio_status_s::timestamp.
Referenced by task_main().
|
private |
Definition at line 591 of file mavlink_main.h.
Referenced by display_status(), mavlink_open_uart(), and task_main().
|
staticprivate |
Definition at line 552 of file mavlink_main.h.
Referenced by mavlink_get_channel_buffer(), and set_boot_complete().
|
private |
Definition at line 622 of file mavlink_main.h.
Referenced by task_main().
|
private |
Definition at line 623 of file mavlink_main.h.
Referenced by task_main().
|
private |
Definition at line 620 of file mavlink_main.h.
Referenced by task_main().
|
private |
Definition at line 621 of file mavlink_main.h.
Referenced by task_main().
|
private |
Definition at line 580 of file mavlink_main.h.
Referenced by display_status(), set_channel(), and task_main().
|
private |
data rate for normal streams (attitude, position, etc.)
Definition at line 592 of file mavlink_main.h.
Referenced by display_status(), publish_telemetry_status(), set_hil_enabled(), task_main(), and update_rate_mult().
const char* Mavlink::_device_name {DEFAULT_DEVICE_NAME} |
Definition at line 185 of file mavlink_main.h.
Referenced by check_requested_subscriptions(), display_status(), get_instance_for_device(), serial_instance_exists(), and task_main().
|
private |
Definition at line 545 of file mavlink_main.h.
Referenced by task_main().
|
staticprivate |
Definition at line 693 of file mavlink_main.h.
Referenced by Mavlink(), and mavlink_get_channel_buffer().
|
private |
Definition at line 612 of file mavlink_main.h.
Referenced by display_status(), enable_flow_control(), and get_free_tx_buf().
|
private |
Definition at line 586 of file mavlink_main.h.
Referenced by pass_message(), and task_main().
|
private |
Definition at line 587 of file mavlink_main.h.
Referenced by display_status(), and task_main().
|
private |
Generate RC messages from manual input MAVLink messages.
Definition at line 563 of file mavlink_main.h.
|
private |
Hardware In the Loop mode.
Definition at line 562 of file mavlink_main.h.
Referenced by set_hil_enabled().
|
private |
Definition at line 541 of file mavlink_main.h.
Referenced by set_channel(), set_instance_id(), and update_rate_mult().
|
private |
Definition at line 641 of file mavlink_main.h.
Referenced by send_bytes(), and task_main().
|
private |
Port is USB.
Definition at line 564 of file mavlink_main.h.
Referenced by enable_flow_control(), mavlink_open_uart(), and task_main().
|
private |
Definition at line 614 of file mavlink_main.h.
Referenced by get_free_tx_buf(), and send_bytes().
|
private |
Definition at line 615 of file mavlink_main.h.
Referenced by get_free_tx_buf(), and send_bytes().
|
private |
Definition at line 582 of file mavlink_main.h.
Referenced by task_main().
|
private |
loop performance counter
loop interval performance counter
Definition at line 681 of file mavlink_main.h.
Referenced by task_main(), and ~Mavlink().
|
private |
mainloop delay, depends on data rate
Definition at line 568 of file mavlink_main.h.
Referenced by task_main().
|
private |
Definition at line 558 of file mavlink_main.h.
|
private |
Definition at line 606 of file mavlink_main.h.
|
private |
Definition at line 547 of file mavlink_main.h.
Referenced by send_statustext_critical(), send_statustext_emergency(), send_statustext_info(), and task_main().
|
private |
If the queue index is not at 0, the queue sending logic will send parameters from the current index to len - 1, the end of the param list.
Definition at line 604 of file mavlink_main.h.
|
private |
Definition at line 573 of file mavlink_main.h.
Referenced by close_shell(), get_shell(), and task_main().
|
private |
Definition at line 616 of file mavlink_main.h.
Referenced by send_bytes().
|
private |
Definition at line 559 of file mavlink_main.h.
|
private |
Definition at line 574 of file mavlink_main.h.
Referenced by display_status(), task_main(), and update_rate_mult().
|
private |
Definition at line 576 of file mavlink_main.h.
Referenced by task_main().
|
private |
Definition at line 658 of file mavlink_main.h.
Referenced by message_buffer_count(), message_buffer_destroy(), message_buffer_get_ptr(), message_buffer_init(), and message_buffer_write().
|
private |
Definition at line 660 of file mavlink_main.h.
Referenced by pass_message(), and task_main().
|
private |
Definition at line 578 of file mavlink_main.h.
Referenced by configure_streams_to_default(), display_status(), publish_telemetry_status(), send_packet(), and task_main().
|
private |
Definition at line 649 of file mavlink_main.h.
Referenced by display_status().
|
private |
Definition at line 644 of file mavlink_main.h.
Referenced by display_status().
|
private |
Definition at line 618 of file mavlink_main.h.
Referenced by display_status(), publish_telemetry_status(), send_protocol_version(), and set_proto_version().
|
private |
Definition at line 617 of file mavlink_main.h.
Referenced by mavlink_update_parameters(), and set_proto_version().
|
private |
Definition at line 595 of file mavlink_main.h.
Referenced by update_radio_status(), and update_rate_mult().
|
private |
Definition at line 596 of file mavlink_main.h.
Referenced by update_radio_status(), and update_rate_mult().
|
private |
Definition at line 597 of file mavlink_main.h.
Referenced by update_radio_status(), and update_rate_mult().
|
private |
Definition at line 593 of file mavlink_main.h.
Referenced by display_status(), display_status_streams(), publish_telemetry_status(), and update_rate_mult().
|
private |
Definition at line 584 of file mavlink_main.h.
Referenced by task_main().
|
private |
Whether we've received valid mavlink messages.
Definition at line 566 of file mavlink_main.h.
|
private |
Definition at line 646 of file mavlink_main.h.
Referenced by display_status(), update_radio_status(), and update_rate_mult().
|
private |
Definition at line 661 of file mavlink_main.h.
Referenced by send_packet(), and task_main().
|
private |
Definition at line 643 of file mavlink_main.h.
Referenced by send_bytes(), send_packet(), and task_main().
|
private |
Definition at line 571 of file mavlink_main.h.
Referenced by configure_stream(), display_status_streams(), publish_telemetry_status(), task_main(), and update_rate_mult().
|
private |
Definition at line 608 of file mavlink_main.h.
Referenced by check_requested_subscriptions(), configure_stream_threadsafe(), and task_main().
|
private |
rate of stream to subscribe to (0=disable, -1=unlimited, -2=default)
Definition at line 609 of file mavlink_main.h.
Referenced by check_requested_subscriptions(), and configure_stream_threadsafe().
|
private |
Definition at line 570 of file mavlink_main.h.
Referenced by add_orb_subscription(), and task_main().
|
private |
Definition at line 551 of file mavlink_main.h.
Referenced by destroy_all_instances(), start_helper(), and ~Mavlink().
bool Mavlink::_task_should_exit {false} |
Mavlink task should exit iff true.
Definition at line 463 of file mavlink_main.h.
Referenced by configure_stream_threadsafe(), destroy_all_instances(), MavlinkReceiver::Run(), task_main(), and ~Mavlink().
|
private |
Definition at line 549 of file mavlink_main.h.
Referenced by publish_telemetry_status().
|
private |
Definition at line 543 of file mavlink_main.h.
Referenced by display_status(), and task_main().
|
private |
Definition at line 544 of file mavlink_main.h.
Referenced by task_main().
|
private |
Definition at line 647 of file mavlink_main.h.
Referenced by check_radio_config(), display_status(), publish_telemetry_status(), send_packet(), task_main(), and update_rate_mult().
|
private |
Definition at line 589 of file mavlink_main.h.
Referenced by check_radio_config(), enable_flow_control(), get_free_tx_buf(), mavlink_open_uart(), send_bytes(), and task_main().
|
private |
Definition at line 610 of file mavlink_main.h.
|
private |
Wait to transmit until received messages.
Definition at line 565 of file mavlink_main.h.
Referenced by task_main().
|
staticprivate |
Definition at line 553 of file mavlink_main.h.
Referenced by start().
|
staticprivate |
Definition at line 555 of file mavlink_main.h.
Referenced by task_main().
|
staticprivate |
Definition at line 554 of file mavlink_main.h.
Referenced by task_main().
|
staticprivate |
Definition at line 556 of file mavlink_main.h.
|
protected |
Definition at line 538 of file mavlink_main.h.
Referenced by destroy_all_instances(), get_status_all_instances(), and serial_instance_exists().
|
staticprivate |
Definition at line 689 of file mavlink_main.h.
Referenced by update_radio_status().
|
staticprivate |
Definition at line 691 of file mavlink_main.h.
Referenced by update_radio_status().
|
staticprivate |
Definition at line 690 of file mavlink_main.h.
Referenced by update_radio_status().