From c4b5bd4bd994fdc902b6a243afb244a59cb7050a Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Tue, 15 Nov 2016 15:40:28 +0100 Subject: [PATCH] SITL: revert fg view to activate by default and use flag to disable it --- libraries/AP_HAL_SITL/SITL_cmdline.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_HAL_SITL/SITL_cmdline.cpp b/libraries/AP_HAL_SITL/SITL_cmdline.cpp index 3d4a733840..158d7cf9eb 100644 --- a/libraries/AP_HAL_SITL/SITL_cmdline.cpp +++ b/libraries/AP_HAL_SITL/SITL_cmdline.cpp @@ -132,7 +132,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[]) _rcin_port = 5501; _fdm_address = "127.0.0.1"; _client_address = nullptr; - _use_fg_view = false; + _use_fg_view = true; _instance = 0; enum long_options { @@ -172,7 +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}, + {"disable-fgview", false, 0, CMDLINE_FGVIEW}, {0, false, 0, 0} }; @@ -244,7 +244,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[]) _uart_path[opt - CMDLINE_UARTA] = gopt.optarg; break; case CMDLINE_FGVIEW: - _use_fg_view = true; + _use_fg_view = false; default: _usage(); exit(1);