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
091cc1eb
Commit
091cc1eb
authored
Aug 23, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to new QGCRadioChannelDisplay API
parent
fc8c216a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
32 deletions
+32
-32
QGCVehicleConfig.cc
src/ui/QGCVehicleConfig.cc
+16
-16
RadioCalibrationConfig.cc
src/ui/configuration/RadioCalibrationConfig.cc
+16
-16
No files found.
src/ui/QGCVehicleConfig.cc
View file @
091cc1eb
...
...
@@ -206,14 +206,14 @@ void QGCVehicleConfig::startCalibrationRC()
ui
->
rcCalibrationButton
->
setText
(
tr
(
"Stop RC Calibration"
));
resetCalibrationRC
();
calibrationEnabled
=
true
;
ui
->
rollWidget
->
showMinMax
();
ui
->
pitchWidget
->
showMinMax
();
ui
->
yawWidget
->
showMinMax
();
ui
->
throttleWidget
->
showMinMax
();
ui
->
radio5Widget
->
showMinMax
();
ui
->
radio6Widget
->
showMinMax
();
ui
->
radio7Widget
->
showMinMax
();
ui
->
radio8Widget
->
showMinMax
();
ui
->
rollWidget
->
showMinMax
(
true
);
ui
->
pitchWidget
->
showMinMax
(
true
);
ui
->
yawWidget
->
showMinMax
(
true
);
ui
->
throttleWidget
->
showMinMax
(
true
);
ui
->
radio5Widget
->
showMinMax
(
true
);
ui
->
radio6Widget
->
showMinMax
(
true
);
ui
->
radio7Widget
->
showMinMax
(
true
);
ui
->
radio8Widget
->
showMinMax
(
true
);
}
void
QGCVehicleConfig
::
stopCalibrationRC
()
...
...
@@ -222,14 +222,14 @@ void QGCVehicleConfig::stopCalibrationRC()
calibrationEnabled
=
false
;
ui
->
rcTypeComboBox
->
setEnabled
(
true
);
ui
->
rcCalibrationButton
->
setText
(
tr
(
"Start RC Calibration"
));
ui
->
rollWidget
->
hideMinMax
(
);
ui
->
pitchWidget
->
hideMinMax
(
);
ui
->
yawWidget
->
hideMinMax
(
);
ui
->
throttleWidget
->
hideMinMax
(
);
ui
->
radio5Widget
->
hideMinMax
(
);
ui
->
radio6Widget
->
hideMinMax
(
);
ui
->
radio7Widget
->
hideMinMax
(
);
ui
->
radio8Widget
->
hideMinMax
(
);
ui
->
rollWidget
->
showMinMax
(
false
);
ui
->
pitchWidget
->
showMinMax
(
false
);
ui
->
yawWidget
->
showMinMax
(
false
);
ui
->
throttleWidget
->
showMinMax
(
false
);
ui
->
radio5Widget
->
showMinMax
(
false
);
ui
->
radio6Widget
->
showMinMax
(
false
);
ui
->
radio7Widget
->
showMinMax
(
false
);
ui
->
radio8Widget
->
showMinMax
(
false
);
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 1500
\n\n
"
;
...
...
src/ui/configuration/RadioCalibrationConfig.cc
View file @
091cc1eb
...
...
@@ -176,14 +176,14 @@ void RadioCalibrationConfig::calibrateButtonClicked()
rcMin
[
i
]
=
1500
;
rcMax
[
i
]
=
1500
;
}
ui
.
rollWidget
->
showMinMax
();
ui
.
pitchWidget
->
showMinMax
();
ui
.
yawWidget
->
showMinMax
();
ui
.
radio5Widget
->
showMinMax
();
ui
.
radio6Widget
->
showMinMax
();
ui
.
radio7Widget
->
showMinMax
();
ui
.
throttleWidget
->
showMinMax
();
ui
.
radio8Widget
->
showMinMax
();
ui
.
rollWidget
->
showMinMax
(
true
);
ui
.
pitchWidget
->
showMinMax
(
true
);
ui
.
yawWidget
->
showMinMax
(
true
);
ui
.
radio5Widget
->
showMinMax
(
true
);
ui
.
radio6Widget
->
showMinMax
(
true
);
ui
.
radio7Widget
->
showMinMax
(
true
);
ui
.
throttleWidget
->
showMinMax
(
true
);
ui
.
radio8Widget
->
showMinMax
(
true
);
QMessageBox
::
information
(
0
,
"Information"
,
"Click OK, then move all sticks to their extreme positions, watching the min/max values to ensure you get the most range from your controller. This includes all switches"
);
}
else
...
...
@@ -192,14 +192,14 @@ void RadioCalibrationConfig::calibrateButtonClicked()
QMessageBox
::
information
(
0
,
"Trims"
,
"Ensure all sticks are centered and throttle is in the downmost position, click OK to continue"
);
///TODO: Set trims!
m_calibrationEnabled
=
false
;
ui
.
rollWidget
->
hideMinMax
(
);
ui
.
pitchWidget
->
hideMinMax
(
);
ui
.
yawWidget
->
hideMinMax
(
);
ui
.
radio5Widget
->
hideMinMax
(
);
ui
.
radio6Widget
->
hideMinMax
(
);
ui
.
throttleWidget
->
hideMinMax
(
);
ui
.
radio7Widget
->
hideMinMax
(
);
ui
.
radio8Widget
->
hideMinMax
(
);
ui
.
rollWidget
->
showMinMax
(
false
);
ui
.
pitchWidget
->
showMinMax
(
false
);
ui
.
yawWidget
->
showMinMax
(
false
);
ui
.
radio5Widget
->
showMinMax
(
false
);
ui
.
radio6Widget
->
showMinMax
(
false
);
ui
.
throttleWidget
->
showMinMax
(
false
);
ui
.
radio7Widget
->
showMinMax
(
false
);
ui
.
radio8Widget
->
showMinMax
(
false
);
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 1500
\n\n
"
;
...
...
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