mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
SBUS on Linux: replace termios with termios2 and add UNKNOWN UART WQ
This commit is contained in:
@@ -79,6 +79,7 @@ static constexpr wq_config_t UART5{"wq:UART5", 1400, -21};
|
||||
static constexpr wq_config_t UART6{"wq:UART6", 1400, -22};
|
||||
static constexpr wq_config_t UART7{"wq:UART7", 1400, -23};
|
||||
static constexpr wq_config_t UART8{"wq:UART8", 1400, -24};
|
||||
static constexpr wq_config_t UART_UNKNOWN{"wq:UART_UNKNOWN", 1400, -25};
|
||||
|
||||
static constexpr wq_config_t lp_default{"wq:lp_default", 1700, -50};
|
||||
|
||||
|
||||
@@ -196,9 +196,9 @@ serial_port_to_wq(const char *serial)
|
||||
return wq_configurations::UART8;
|
||||
}
|
||||
|
||||
PX4_ERR("unknown serial port: %s", serial);
|
||||
PX4_DEBUG("unknown serial port: %s", serial);
|
||||
|
||||
return wq_configurations::hp_default;
|
||||
return wq_configurations::UART_UNKNOWN;
|
||||
}
|
||||
|
||||
static void *
|
||||
|
||||
Reference in New Issue
Block a user