Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Ardupilot
Commits
8d543686
Commit
8d543686
authored
10 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
AP_Math: fixed build warning
parent
09547c40
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/AP_Math/vector3.cpp
+4
-4
4 additions, 4 deletions
libraries/AP_Math/vector3.cpp
with
4 additions
and
4 deletions
libraries/AP_Math/vector3.cpp
+
4
−
4
View file @
8d543686
...
...
@@ -222,12 +222,12 @@ void Vector3<T>::rotate(enum Rotation rotation)
return
;
}
case
ROTATION_YAW_293_PITCH_68_ROLL_180
:
{
float
tmp
=
x
;
float
tmp
x
=
x
;
float
tmpy
=
y
;
float
tmpz
=
z
;
x
=
0.1430389
f
*
tmp
-
0.9184465
f
*
tmpy
-
0.3687762
f
*
tmpz
;
y
=
-
0.3321327
f
*
tmp
-
0.3955452
f
*
tmpy
+
0.8562895
f
*
tmpz
;
z
=
-
0.9323238
f
*
tmp
-
0.00000003
f
*
tmpy
-
0.3616245
f
*
tmpz
;
x
=
0.1430389
f
*
tmp
x
-
0.9184465
f
*
tmpy
-
0.3687762
f
*
tmpz
;
y
=
-
0.3321327
f
*
tmp
x
-
0.3955452
f
*
tmpy
+
0.8562895
f
*
tmpz
;
z
=
-
0.9323238
f
*
tmp
x
-
0.00000003
f
*
tmpy
-
0.3616245
f
*
tmpz
;
return
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment