mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 00:13:34 +08:00
QuRT and POSIX changes - part 5
Last part of the main QuRT related changes Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -112,9 +112,11 @@ public:
|
||||
|
||||
static void forward_message(const mavlink_message_t *msg, Mavlink *self);
|
||||
|
||||
#ifndef __PX4_QURT
|
||||
static int get_uart_fd(unsigned index);
|
||||
|
||||
int get_uart_fd();
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Get the MAVLink system id.
|
||||
@@ -190,12 +192,14 @@ public:
|
||||
|
||||
int get_instance_id();
|
||||
|
||||
#ifndef __PX4_QURT
|
||||
/**
|
||||
* Enable / disable hardware flow control.
|
||||
*
|
||||
* @param enabled True if hardware flow control should be enabled
|
||||
*/
|
||||
int enable_flow_control(bool enabled);
|
||||
#endif
|
||||
|
||||
mavlink_channel_t get_channel();
|
||||
|
||||
@@ -320,7 +324,9 @@ private:
|
||||
bool _forwarding_on;
|
||||
bool _passing_on;
|
||||
bool _ftp_on;
|
||||
#ifndef __PX4_QURT
|
||||
int _uart_fd;
|
||||
#endif
|
||||
int _baudrate;
|
||||
int _datarate; ///< data rate for normal streams (attitude, position, etc.)
|
||||
int _datarate_events; ///< data rate for params, waypoints, text messages
|
||||
@@ -378,7 +384,9 @@ private:
|
||||
|
||||
void mavlink_update_system();
|
||||
|
||||
#ifndef __PX4_QURT
|
||||
int mavlink_open_uart(int baudrate, const char *uart_name, struct termios *uart_config_original, bool *is_usb);
|
||||
#endif
|
||||
|
||||
static unsigned int interval_from_rate(float rate);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user