aboutsummaryrefslogtreecommitdiff
path: root/src/modules/mavlink/mavlink_main.h
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-07-25 00:16:02 +0200
committerAnton Babushkin <anton.babushkin@me.com>2014-07-25 00:16:02 +0200
commit8f0af1c5fe5a843c56fff2dc70acb2fc0e7e1b90 (patch)
treef2773e147802afa920ab667a5ba07f71eee333dd /src/modules/mavlink/mavlink_main.h
parentc486aa536f3c0169e1abb0f4c2b60baa1e2b053b (diff)
downloadpx4-firmware-8f0af1c5fe5a843c56fff2dc70acb2fc0e7e1b90.tar.gz
px4-firmware-8f0af1c5fe5a843c56fff2dc70acb2fc0e7e1b90.tar.bz2
px4-firmware-8f0af1c5fe5a843c56fff2dc70acb2fc0e7e1b90.zip
mavlink: forwarding and FTP fixed, flow control detector fixed
Diffstat (limited to 'src/modules/mavlink/mavlink_main.h')
-rw-r--r--src/modules/mavlink/mavlink_main.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/modules/mavlink/mavlink_main.h b/src/modules/mavlink/mavlink_main.h
index e3bad828f..4121e286e 100644
--- a/src/modules/mavlink/mavlink_main.h
+++ b/src/modules/mavlink/mavlink_main.h
@@ -162,6 +162,11 @@ public:
void send_message(const uint8_t msgid, const void *msg);
+ /**
+ * Resend message as is, don't change sequence number and CRC.
+ */
+ void resend_message(mavlink_message_t *msg);
+
void handle_message(const mavlink_message_t *msg);
MavlinkOrbSubscription *add_orb_subscription(const orb_id_t topic);
@@ -252,13 +257,6 @@ public:
void count_rxbytes(unsigned n) { _bytes_rx += n; };
/**
- * Get the free space in the transmit buffer
- *
- * @return free space in the UART TX buffer
- */
- unsigned get_free_tx_buf();
-
- /**
* Get the receive status of this MAVLink link
*/
struct telemetry_status_s& get_rx_status() { return _rstatus; }
@@ -358,6 +356,13 @@ private:
int mavlink_open_uart(int baudrate, const char *uart_name, struct termios *uart_config_original, bool *is_usb);
+ /**
+ * Get the free space in the transmit buffer
+ *
+ * @return free space in the UART TX buffer
+ */
+ unsigned get_free_tx_buf();
+
static unsigned int interval_from_rate(float rate);
int configure_stream(const char *stream_name, const float rate);