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
bd6a60f2
Commit
bd6a60f2
authored
12 years ago
by
Randy Mackay
Browse files
Options
Downloads
Patches
Plain Diff
AP_Math: add M_PI_2 definition
Required when building under arduino
parent
8545071a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/AP_Math/AP_Math.h
+4
-1
4 additions, 1 deletion
libraries/AP_Math/AP_Math.h
with
4 additions
and
1 deletion
libraries/AP_Math/AP_Math.h
+
4
−
1
View file @
bd6a60f2
...
@@ -20,7 +20,10 @@
...
@@ -20,7 +20,10 @@
#include
"polygon.h"
#include
"polygon.h"
#ifndef PI
#ifndef PI
#define PI 3.141592653589793f
# define PI 3.141592653589793f
#endif
#ifndef M_PI_2
# define M_PI_2 1.570796326794897f
#endif
#endif
#define DEG_TO_RAD 0.017453292519943295769236907684886f
#define DEG_TO_RAD 0.017453292519943295769236907684886f
#define RAD_TO_DEG 57.295779513082320876798154814105f
#define RAD_TO_DEG 57.295779513082320876798154814105f
...
...
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