|
|
|
@ -132,6 +132,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
@@ -132,6 +132,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
|
|
|
|
|
_simin_port = 5501; |
|
|
|
|
_fdm_address = "127.0.0.1"; |
|
|
|
|
_client_address = nullptr; |
|
|
|
|
_use_fg_view = false; |
|
|
|
|
_instance = 0; |
|
|
|
|
|
|
|
|
|
enum long_options { |
|
|
|
@ -145,6 +146,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
@@ -145,6 +146,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
|
|
|
|
|
CMDLINE_UARTE, |
|
|
|
|
CMDLINE_UARTF, |
|
|
|
|
CMDLINE_RTSCTS, |
|
|
|
|
CMDLINE_FGVIEW, |
|
|
|
|
CMDLINE_DEFAULTS |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -170,6 +172,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
@@ -170,6 +172,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
|
|
|
|
|
{"autotest-dir", true, 0, CMDLINE_AUTOTESTDIR}, |
|
|
|
|
{"defaults", true, 0, CMDLINE_DEFAULTS}, |
|
|
|
|
{"rtscts", false, 0, CMDLINE_RTSCTS}, |
|
|
|
|
{"fgview", false, 0, CMDLINE_FGVIEW}, |
|
|
|
|
{0, false, 0, 0} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -240,7 +243,8 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
@@ -240,7 +243,8 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
|
|
|
|
|
case CMDLINE_UARTF: |
|
|
|
|
_uart_path[opt - CMDLINE_UARTA] = gopt.optarg; |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case CMDLINE_FGVIEW: |
|
|
|
|
_use_fg_view = true; |
|
|
|
|
default: |
|
|
|
|
_usage(); |
|
|
|
|
exit(1); |
|
|
|
|