From 4f51bf9a6cc296308c6ab942ada7d183e2773b97 Mon Sep 17 00:00:00 2001 From: James Goppert Date: Sun, 9 Dec 2012 00:03:36 -0500 Subject: [PATCH] Added stop button for flightgear hil. --- src/ui/QGCHilFlightGearConfiguration.cc | 5 +++ src/ui/QGCHilFlightGearConfiguration.h | 1 + src/ui/QGCHilFlightGearConfiguration.ui | 45 ++++++++++++++----------- 3 files changed, 32 insertions(+), 19 deletions(-) diff --git a/src/ui/QGCHilFlightGearConfiguration.cc b/src/ui/QGCHilFlightGearConfiguration.cc index 84137ed3e..55d90f3bb 100644 --- a/src/ui/QGCHilFlightGearConfiguration.cc +++ b/src/ui/QGCHilFlightGearConfiguration.cc @@ -41,3 +41,8 @@ void QGCHilFlightGearConfiguration::on_startButton_clicked() options.append(" --aircraft=" + ui->aircraftComboBox->currentText()); mav->enableHilFlightGear(true, options); } + +void QGCHilFlightGearConfiguration::on_stopButton_clicked() +{ + mav->stopHil(); +} diff --git a/src/ui/QGCHilFlightGearConfiguration.h b/src/ui/QGCHilFlightGearConfiguration.h index 278e33ac5..9ac353834 100644 --- a/src/ui/QGCHilFlightGearConfiguration.h +++ b/src/ui/QGCHilFlightGearConfiguration.h @@ -24,6 +24,7 @@ protected: private slots: void on_startButton_clicked(); + void on_stopButton_clicked(); private: Ui::QGCHilFlightGearConfiguration *ui; diff --git a/src/ui/QGCHilFlightGearConfiguration.ui b/src/ui/QGCHilFlightGearConfiguration.ui index 2495b0784..2a4cb315b 100644 --- a/src/ui/QGCHilFlightGearConfiguration.ui +++ b/src/ui/QGCHilFlightGearConfiguration.ui @@ -6,8 +6,8 @@ 0 0 - 190 - 246 + 237 + 204 @@ -25,26 +25,13 @@ false - + 0 6 - - - - - 0 - 0 - - - - Start - - - @@ -52,7 +39,7 @@ - + @@ -72,7 +59,7 @@ - + @@ -81,7 +68,27 @@ - --in-air --roll=0 --pitch=0 --vc=90 --heading=300 --timeofday=noon --disable-hud-3d --disable-fullscreen --geometry=400x300 --disable-anti-alias-hud --wind=0@0 --turbulence=0.0 --prop:/sim/frame-rate-throttle-hz=30 --control=mouse --disable-intro-music --disable-sound --disable-random-objects --disable-ai-models --shading-flat --fog-disable --disable-specular-highlight --disable-random-objects --disable-panel --disable-clouds --fdm=jsb --units-meters --notrim --prop:/engines/engine/running=true + --in-air --roll=0 --pitch=0 --vc=90 --heading=300 --timeofday=noon --disable-hud-3d --disable-fullscreen --geometry=400x300 --disable-anti-alias-hud --wind=0@0 --turbulence=0.0 --prop:/sim/frame-rate-throttle-hz=30 --control=mouse --disable-intro-music --disable-sound --disable-random-objects --disable-ai-models --shading-flat --fog-disable --disable-specular-highlight --disable-random-objects --disable-panel --disable-clouds --fdm=jsb --units-meters --prop:/engines/engine/running=true + + + + + + + + 0 + 0 + + + + Start + + + + + + + Stop -- 2.22.0