diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-07-25 00:16:02 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-07-25 00:16:02 +0200 |
commit | 8f0af1c5fe5a843c56fff2dc70acb2fc0e7e1b90 (patch) | |
tree | f2773e147802afa920ab667a5ba07f71eee333dd /src/modules/mavlink/mavlink_main.h | |
parent | c486aa536f3c0169e1abb0f4c2b60baa1e2b053b (diff) | |
download | px4-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.h | 19 |
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); |