SITL: added --uartA alias for SITL

needed for MissionPlanner SITL

see https://github.com/ArduPilot/MissionPlanner/pull/3359

we will need this till a new stable release of MissionPlanner is done
This commit is contained in:
Andrew Tridgell 2024-06-01 18:57:51 +10:00
parent 4e0e20aee1
commit c2a9bc93b5
1 changed files with 3 additions and 1 deletions

View File

@ -106,6 +106,7 @@ void SITL_State::_usage(void)
"\t--serial7 device set device string for SERIAL7\n" "\t--serial7 device set device string for SERIAL7\n"
"\t--serial8 device set device string for SERIAL8\n" "\t--serial8 device set device string for SERIAL8\n"
"\t--serial9 device set device string for SERIAL9\n" "\t--serial9 device set device string for SERIAL9\n"
"\t--uartA device alias for --serial0 (do not use)\n"
"\t--rtscts enable rtscts on serial ports (default false)\n" "\t--rtscts enable rtscts on serial ports (default false)\n"
"\t--base-port PORT set port num for base port(default 5670) must be before -I option\n" "\t--base-port PORT set port num for base port(default 5670) must be before -I option\n"
"\t--rc-in-port PORT set port num for rc in\n" "\t--rc-in-port PORT set port num for rc in\n"
@ -305,7 +306,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
{"enable-fgview", false, 0, CMDLINE_FGVIEW}, {"enable-fgview", false, 0, CMDLINE_FGVIEW},
{"autotest-dir", true, 0, CMDLINE_AUTOTESTDIR}, {"autotest-dir", true, 0, CMDLINE_AUTOTESTDIR},
{"defaults", true, 0, CMDLINE_DEFAULTS}, {"defaults", true, 0, CMDLINE_DEFAULTS},
{"uartA", true, 0, CMDLINE_UARTA}, // {"uartA", true, 0, CMDLINE_UARTA}, // alias for serial0
{"uartB", true, 0, CMDLINE_UARTB}, {"uartB", true, 0, CMDLINE_UARTB},
{"uartC", true, 0, CMDLINE_UARTC}, {"uartC", true, 0, CMDLINE_UARTC},
{"uartD", true, 0, CMDLINE_UARTD}, {"uartD", true, 0, CMDLINE_UARTD},
@ -316,6 +317,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
{"uartI", true, 0, CMDLINE_UARTI}, {"uartI", true, 0, CMDLINE_UARTI},
{"uartJ", true, 0, CMDLINE_UARTJ}, {"uartJ", true, 0, CMDLINE_UARTJ},
{"serial0", true, 0, CMDLINE_SERIAL0}, {"serial0", true, 0, CMDLINE_SERIAL0},
{"uartA", true, 0, CMDLINE_SERIAL0}, // for MissionPlanner compatibility
{"serial1", true, 0, CMDLINE_SERIAL1}, {"serial1", true, 0, CMDLINE_SERIAL1},
{"serial2", true, 0, CMDLINE_SERIAL2}, {"serial2", true, 0, CMDLINE_SERIAL2},
{"serial3", true, 0, CMDLINE_SERIAL3}, {"serial3", true, 0, CMDLINE_SERIAL3},