mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Switched to explicitly using M_PI.
This commit is contained in:
parent
3e6e8f44c2
commit
6711c56dc5
5 changed files with 13 additions and 16 deletions
|
@ -21,13 +21,10 @@
|
|||
#define sq(x) ((x)*(x))
|
||||
#endif
|
||||
|
||||
#ifdef M_PI
|
||||
// M_PI should be float, but previous definition may be double
|
||||
# undef M_PI
|
||||
#endif
|
||||
#define M_PI 3.14159265358979323846f
|
||||
// Use floating point M_PI instead explicitly.
|
||||
#define M_PIf 3.14159265358979323846f
|
||||
|
||||
#define RAD (M_PI / 180.0f)
|
||||
#define RAD (M_PIf / 180.0f)
|
||||
|
||||
#define min(a, b) ((a) < (b) ? (a) : (b))
|
||||
#define max(a, b) ((a) > (b) ? (a) : (b))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue