Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
da5eaf93
Commit
da5eaf93
authored
Aug 19, 2013
by
Lorenz Meier
Browse files
Make non-moved channels safe, will fail RC check else
parent
130debe4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/QGCPX4VehicleConfig.cc
View file @
da5eaf93
...
...
@@ -313,12 +313,21 @@ void QGCPX4VehicleConfig::stopCalibrationRC()
ui
->
radio7Widget
->
hideMinMax
();
ui
->
radio8Widget
->
hideMinMax
();
for
(
int
i
=
0
;
i
<
chanCount
;
i
++
)
{
if
(
rcMin
[
i
]
>
1350
)
rcMin
[
i
]
=
1000
;
if
(
rcMax
[
i
]
<
1650
)
rcMax
[
i
]
=
2000
;
}
QString
statusstr
;
statusstr
=
"Below you will find the detected radio calibration information that will be sent to the autopilot
\n
"
;
statusstr
+=
"Normal values are around 1100 to 1900, with disconnected channels reading
very close to 15
00
\n\n
"
;
statusstr
+=
"Normal values are around 1100 to 1900, with disconnected channels reading
1000, 1500, 20
00
\n\n
"
;
statusstr
+=
"Channel
\t
Min
\t
Center
\t
Max
\n
"
;
statusstr
+=
"--------------------
\n
"
;
for
(
int
i
=
0
;
i
<
8
;
i
++
)
for
(
int
i
=
0
;
i
<
chanCount
;
i
++
)
{
statusstr
+=
QString
::
number
(
i
)
+
"
\t
"
+
QString
::
number
(
rcMin
[
i
])
+
"
\t
"
+
QString
::
number
(
rcValue
[
i
])
+
"
\t
"
+
QString
::
number
(
rcMax
[
i
])
+
"
\n
"
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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