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
a6da2b7d
Commit
a6da2b7d
authored
Oct 12, 2015
by
Lorenz Meier
Browse files
Merge pull request #1960 from tumbili/yaw_calib
quick fix for yaw axis calibration issue
parents
0d2f3312
5334c551
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Joystick/Joystick.cc
View file @
a6da2b7d
...
...
@@ -278,8 +278,12 @@ void Joystick::run(void)
float
pitch
=
_adjustRange
(
_rgAxisValues
[
axis
],
_rgCalibration
[
axis
]);
axis
=
_rgFunctionAxis
[
yawFunction
];
_rgCalibration
[
axis
].
min
=
-
32768
;
_rgCalibration
[
axis
].
max
=
32767
;
_rgCalibration
[
axis
].
center
=
0
;
_rgCalibration
[
axis
].
reversed
=
false
;
float
yaw
=
_adjustRange
(
_rgAxisValues
[
axis
],
_rgCalibration
[
axis
]);
axis
=
_rgFunctionAxis
[
throttleFunction
];
float
throttle
=
_adjustRange
(
_rgAxisValues
[
axis
],
_rgCalibration
[
axis
]);
...
...
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