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
3f88380f
Commit
3f88380f
authored
Sep 01, 2013
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed RC cal
parent
fa0c04df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
7 deletions
+28
-7
style-dark.css
files/styles/style-dark.css
+5
-0
QGCPX4VehicleConfig.cc
src/ui/QGCPX4VehicleConfig.cc
+9
-0
QGCPX4VehicleConfig.ui
src/ui/QGCPX4VehicleConfig.ui
+14
-7
No files found.
files/styles/style-dark.css
View file @
3f88380f
...
...
@@ -229,6 +229,11 @@ QGCPX4SensorCalibration QLabel#accelLabel {
min-height
:
25px
;
}
QGCPX4VehicleConfig
QLabel
#rcLabel
{
color
:
#FEC654
;
font-size
:
18pt
;
}
QGCToolWidgetItem
{
border
:
1px
solid
#666
;
border-radius
:
3px
;
...
...
src/ui/QGCPX4VehicleConfig.cc
View file @
3f88380f
...
...
@@ -239,6 +239,8 @@ QGCPX4VehicleConfig::QGCPX4VehicleConfig(QWidget *parent) :
connect
(
&
updateTimer
,
SIGNAL
(
timeout
()),
this
,
SLOT
(
updateView
()));
updateTimer
.
start
();
ui
->
rcLabel
->
setText
(
tr
(
"NO RADIO CONTROL INPUT DETECTED. PLEASE ENSURE THE TRANSMITTER IS ON."
));
}
QGCPX4VehicleConfig
::~
QGCPX4VehicleConfig
()
...
...
@@ -423,6 +425,7 @@ void QGCPX4VehicleConfig::startCalibrationRC()
QMessageBox
::
warning
(
0
,
tr
(
"RC not Connected"
),
tr
(
"Is the RC receiver connected and transmitter turned on? Detected %1 radio channels. To operate PX4, you need at least 5 channels. "
).
arg
(
chanCount
));
ui
->
rcCalibrationButton
->
setChecked
(
false
);
return
;
}
...
...
@@ -464,6 +467,9 @@ void QGCPX4VehicleConfig::startCalibrationRC()
void
QGCPX4VehicleConfig
::
stopCalibrationRC
()
{
if
(
!
calibrationEnabled
)
return
;
QMessageBox
::
information
(
0
,
"Trims"
,
"Ensure all controls are centered and throttle is in the lowest position. Click OK to continue"
);
calibrationEnabled
=
false
;
...
...
@@ -1808,5 +1814,8 @@ void QGCPX4VehicleConfig::updateView()
updateRcWidgetValues
();
updateRcChanLabels
();
if
(
chanCount
>
0
)
ui
->
rcLabel
->
setText
(
tr
(
"Radio control detected with %1 channels."
).
arg
(
chanCount
));
}
}
src/ui/QGCPX4VehicleConfig.ui
View file @
3f88380f
...
...
@@ -7,7 +7,7 @@
<x>
0
</x>
<y>
0
</y>
<width>
1256
</width>
<height>
9
18
</height>
<height>
9
85
</height>
</rect>
</property>
<property
name=
"sizePolicy"
>
...
...
@@ -198,6 +198,13 @@
</item>
</layout>
</item>
<item>
<widget
class=
"QLabel"
name=
"rcLabel"
>
<property
name=
"text"
>
<string>
Waiting for RC channel data..
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"advancedCheckBox"
>
<property
name=
"text"
>
...
...
@@ -822,8 +829,8 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
21
</width>
<height>
16
</height>
<width>
98
</width>
<height>
28
</height>
</rect>
</property>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_4"
>
...
...
@@ -859,8 +866,8 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
21
</width>
<height>
16
</height>
<width>
98
</width>
<height>
28
</height>
</rect>
</property>
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_5"
>
...
...
@@ -910,8 +917,8 @@
<rect>
<x>
0
</x>
<y>
0
</y>
<width>
16
</width>
<height>
16
</height>
<width>
98
</width>
<height>
28
</height>
</rect>
</property>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_7"
>
...
...
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