mavlink command: new option to completely disable hardware flow control (-Z) (#15566)

This commit is contained in:
SalimTerryLi
2020-08-26 08:40:55 +02:00
committed by GitHub
parent 60a7f7f9f2
commit 407ca0a5d3
2 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -344,7 +344,7 @@ public:
*
* @param enabled True if hardware flow control should be enabled
*/
int enable_flow_control(enum FLOW_CONTROL_MODE enabled);
int setup_flow_control(enum FLOW_CONTROL_MODE enabled);
mavlink_channel_t get_channel() const { return _channel; }
@@ -679,7 +679,7 @@ private:
int mavlink_open_uart(const int baudrate = DEFAULT_BAUD_RATE,
const char *uart_name = DEFAULT_DEVICE_NAME,
const bool force_flow_control = false);
const FLOW_CONTROL_MODE flow_control = FLOW_CONTROL_AUTO);
static constexpr unsigned RADIO_BUFFER_CRITICAL_LOW_PERCENTAGE = 25;
static constexpr unsigned RADIO_BUFFER_LOW_PERCENTAGE = 35;