SBUS on Linux: replace termios with termios2 and add UNKNOWN UART WQ

This commit is contained in:
SalimTerryLi
2020-02-03 03:06:27 +08:00
committed by GitHub
parent c8a58c5c9d
commit e0abe7090e
3 changed files with 45 additions and 59 deletions

View File

@@ -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};

View File

@@ -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 *