Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
21d48a5b
Commit
21d48a5b
authored
Jun 11, 2015
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix XPlane config UI by removing non-implemented elements
parent
f3526074
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
89 deletions
+27
-89
QGCHilXPlaneConfiguration.cc
src/ui/QGCHilXPlaneConfiguration.cc
+3
-3
QGCHilXPlaneConfiguration.ui
src/ui/QGCHilXPlaneConfiguration.ui
+24
-86
No files found.
src/ui/QGCHilXPlaneConfiguration.cc
View file @
21d48a5b
...
...
@@ -26,10 +26,10 @@ QGCHilXPlaneConfiguration::QGCHilXPlaneConfiguration(QGCHilLink* link, QWidget *
// connect(ui->randomAttitudeButton, SIGNAL(clicked()), link, SLOT(setRandomAttitude()));
// connect(ui->randomPositionButton, SIGNAL(clicked()), link, SLOT(setRandomPosition()));
ui
->
airframeComboBox
->
setCurrentIndex
(
link
->
getAirFrameIndex
());
connect
(
ui
->
airframeComboBox
,
SIGNAL
(
activated
(
QString
)),
link
,
SLOT
(
selectAirframe
(
QString
)));
//
ui->airframeComboBox->setCurrentIndex(link->getAirFrameIndex());
//
connect(ui->airframeComboBox, SIGNAL(activated(QString)), link, SLOT(selectAirframe(QString)));
// XXX not implemented yet
ui
->
airframeComboBox
->
hide
();
//
ui->airframeComboBox->hide();
ui
->
sensorHilCheckBox
->
setChecked
(
xplane
->
sensorHilEnabled
());
connect
(
xplane
,
SIGNAL
(
sensorHilChanged
(
bool
)),
ui
->
sensorHilCheckBox
,
SLOT
(
setChecked
(
bool
)));
connect
(
ui
->
sensorHilCheckBox
,
SIGNAL
(
clicked
(
bool
)),
xplane
,
SLOT
(
enableSensorHIL
(
bool
)));
...
...
src/ui/QGCHilXPlaneConfiguration.ui
View file @
21d48a5b
...
...
@@ -6,89 +6,27 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
570
</width>
<height>
238
</height>
<width>
226
</width>
<height>
150
</height>
</rect>
</property>
<property
name=
"windowTitle"
>
<string>
Form
</string>
</property>
<layout
class=
"QGridLayout"
name=
"gridLayout"
rowstretch=
"0,0,0,0,0
,100"
columnstretch=
"20,40,40,2
0"
>
<property
name=
"
m
argin"
>
<layout
class=
"QGridLayout"
name=
"gridLayout"
rowstretch=
"0,0,0,0,0
"
columnstretch=
"20,0,
0"
>
<property
name=
"
leftM
argin"
>
<number>
0
</number>
</property>
<item
row=
"3"
column=
"0"
colspan=
"2"
>
<widget
class=
"QPushButton"
name=
"startButton"
>
<property
name=
"text"
>
<string>
Start
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"1"
colspan=
"3"
>
<widget
class=
"QComboBox"
name=
"airframeComboBox"
>
<property
name=
"editable"
>
<bool>
true
</bool>
</property>
<item>
<property
name=
"text"
>
<string>
X-Plane default
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
QRO_X/MK
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
QRO_X/Ardrone
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
QRO_X/PWM
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Unlimited
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Twinjet
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Early Bird
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Reno Racer
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Slowstick
</string>
</property>
</item>
<item>
<property
name=
"text"
>
<string>
Tiny
</string>
</property>
</item>
</widget>
</item>
<item
row=
"3"
column=
"2"
colspan=
"2"
>
<widget
class=
"QPushButton"
name=
"setHomeButton"
>
<property
name=
"text"
>
<string>
Set HOME
</string>
</property>
</widget>
</item>
<item
row=
"1"
column=
"1"
colspan=
"3"
>
<property
name=
"topMargin"
>
<number>
0
</number>
</property>
<property
name=
"rightMargin"
>
<number>
0
</number>
</property>
<property
name=
"bottomMargin"
>
<number>
0
</number>
</property>
<item
row=
"0"
column=
"1"
colspan=
"2"
>
<widget
class=
"QComboBox"
name=
"hostComboBox"
>
<property
name=
"editable"
>
<bool>
true
</bool>
...
...
@@ -100,28 +38,21 @@
</item>
</widget>
</item>
<item
row=
"
1
"
column=
"0"
>
<item
row=
"
0
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"hostLabel"
>
<property
name=
"text"
>
<string>
Host
</string>
</property>
</widget>
</item>
<item
row=
"0"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label"
>
<property
name=
"text"
>
<string>
Airframe
</string>
</property>
</widget>
</item>
<item
row=
"4"
column=
"0"
colspan=
"4"
>
<item
row=
"3"
column=
"0"
colspan=
"3"
>
<widget
class=
"QCheckBox"
name=
"sensorHilCheckBox"
>
<property
name=
"text"
>
<string>
Enable sensor level HIL
</string>
</property>
</widget>
</item>
<item
row=
"
5"
column=
"0"
colspan=
"4
"
>
<item
row=
"
4"
column=
"0"
colspan=
"3
"
>
<spacer
name=
"verticalSpacer"
>
<property
name=
"orientation"
>
<enum>
Qt::Vertical
</enum>
...
...
@@ -134,6 +65,13 @@
</property>
</spacer>
</item>
<item
row=
"1"
column=
"1"
colspan=
"2"
>
<widget
class=
"QPushButton"
name=
"startButton"
>
<property
name=
"text"
>
<string>
Start
</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment