Skip to content

Commit c2a9bc9

Browse files
committed
SITL: added --uartA alias for SITL
needed for MissionPlanner SITL see ArduPilot/MissionPlanner#3359 we will need this till a new stable release of MissionPlanner is done
1 parent 4e0e20a commit c2a9bc9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/AP_HAL_SITL/SITL_cmdline.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ void SITL_State::_usage(void)
106106
"\t--serial7 device set device string for SERIAL7\n"
107107
"\t--serial8 device set device string for SERIAL8\n"
108108
"\t--serial9 device set device string for SERIAL9\n"
109+
"\t--uartA device alias for --serial0 (do not use)\n"
109110
"\t--rtscts enable rtscts on serial ports (default false)\n"
110111
"\t--base-port PORT set port num for base port(default 5670) must be before -I option\n"
111112
"\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[])
305306
{"enable-fgview", false, 0, CMDLINE_FGVIEW},
306307
{"autotest-dir", true, 0, CMDLINE_AUTOTESTDIR},
307308
{"defaults", true, 0, CMDLINE_DEFAULTS},
308-
{"uartA", true, 0, CMDLINE_UARTA},
309+
// {"uartA", true, 0, CMDLINE_UARTA}, // alias for serial0
309310
{"uartB", true, 0, CMDLINE_UARTB},
310311
{"uartC", true, 0, CMDLINE_UARTC},
311312
{"uartD", true, 0, CMDLINE_UARTD},
@@ -316,6 +317,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
316317
{"uartI", true, 0, CMDLINE_UARTI},
317318
{"uartJ", true, 0, CMDLINE_UARTJ},
318319
{"serial0", true, 0, CMDLINE_SERIAL0},
320+
{"uartA", true, 0, CMDLINE_SERIAL0}, // for MissionPlanner compatibility
319321
{"serial1", true, 0, CMDLINE_SERIAL1},
320322
{"serial2", true, 0, CMDLINE_SERIAL2},
321323
{"serial3", true, 0, CMDLINE_SERIAL3},

0 commit comments

Comments
 (0)