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
26307367
Commit
26307367
authored
Dec 30, 2016
by
Don Gagne
Committed by
GitHub
Dec 30, 2016
Browse files
Merge pull request #4370 from DonLakeFlyer/RadioCalPX4
Radio Cal: Allow reverse setting for PX4
parents
b1a738cc
36d0044b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AutoPilotPlugins/Common/RadioComponentController.cc
View file @
26307367
...
...
@@ -743,8 +743,8 @@ void RadioComponentController::_writeCalibration(void)
}
// For multi-rotor we can determine reverse setting during radio cal. For anything other than multi-rotor, servo installation
// may affect channel reversing so we can't automatically determine it.
if
(
_vehicle
->
multiRotor
())
{
// may affect channel reversing so we can't automatically determine it.
This is ok for PX4 given how it uses mixers, but not for ArduPilot.
if
(
_vehicle
->
px4Firmware
()
||
_vehicle
->
multiRotor
())
{
// APM multi-rotor has a backwards interpretation of "reversed" on the Pitch control. So be careful.
float
reversedParamValue
;
if
(
_px4Vehicle
()
||
info
->
function
!=
rcCalFunctionPitch
)
{
...
...
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