Andrew Tridgell
2a8f645d81
AP_Math: use matrix3 euler312 operations in quaternion library
10 years ago
Andrew Tridgell
7aa7e03169
AP_Math: added euler312 functions (for gimbal)
10 years ago
Andrew Tridgell
605b8b4ece
AP_Math: converted rotations example to cpp
...
this is just a test conversion before we start converting on-mass
10 years ago
Andrew Tridgell
062c9406bd
AP_Math: fixed rotations example build
10 years ago
Tom Pittenger
5f677c2b5b
AP_Math: float to double promotion via cos instead of cosf
10 years ago
Tom Pittenger
e20ffa8c75
AP_Math: replace fabs() with fabsf()
10 years ago
Randy Mackay
9dede2f0ec
Math: remove duplicate HALF_SQRT_2 definition
10 years ago
Andrew Tridgell
77a2b4acf6
AP_Math: removed fast_atan
10 years ago
Andrew Tridgell
0b897e04bb
AP_Math: revert AP_Math class change
10 years ago
Andrew Tridgell
936fbbb362
AP_Math: removed AP_Math class
10 years ago
Tom Pittenger
4ec2fb3a9c
AP_Math: Compiler warnings: nuke fast_atan2()
...
per Randy's suggestion, fast_atan2() is no longer necessary over atan2() because only copter uses it and copter is no longer supported on future builds of APM
ccd578664f (commitcomment-11025083)
10 years ago
Tom Pittenger
330e4126bb
Ap_Math: compile warnings: float to double. use atan2f instead of atan2
10 years ago
Tom Pittenger
820f0bf02a
AP_Math: compiler warnings: float to double promotion
...
cast as float because we're in magical template land where T minus T means promote to double
10 years ago
Tom Pittenger
1c3ad00aa7
AP_Math: compiler warnings: use double for the constant so the template can handle it
10 years ago
Tom Pittenger
6e6f481ecb
AP_Math: compiler warnings: apply is_zero(float) or is_equal(float)
10 years ago
Tom Pittenger
35f7a466e5
AP_Math: compiler warnings: apply is_zero(float) or is_equal(float)
10 years ago
Tom Pittenger
a5d2f3a82f
AP_Math: compiler warnings: float to double
10 years ago
Tom Pittenger
ac4e7b2b03
AP_Math: compiler warnings: apply is_equal(float)
10 years ago
Tom Pittenger
c93c773de2
AP_Math: change is_equal and is_zero to static class for better visability
10 years ago
Tom Pittenger
bdda11b327
AP_Math: compiler warning: is_zero special case for vector3.h in a template
10 years ago
Andrew Tridgell
eca675c556
AP_Math: fix for HAL_SITL rename
10 years ago
Andrew Tridgell
24b051565b
AP_Math: added normalize() method to Matrix3f
10 years ago
Randy Mackay
fecbf06008
AP_Math: fix example sketches
10 years ago
Randy Mackay
eaedeeb7bf
AP_Math: add quaternion.initialise
10 years ago
Randy Mackay
0392292489
AP_Math: inline is_equal, add is_zero
10 years ago
dgrat
726d7df710
AP_Math: add is_equal to compare floats
10 years ago
Jonathan Challinger
3812773485
AP_Math: make quaternion divide by zero protection more conservative
10 years ago
Jonathan Challinger
fb8da1b2d8
AP_Math: add get_euler_(roll|pitch|yaw) functions to quaternion
10 years ago
Tom Pittenger
10c933966b
AP_Math: fix compile warning re float constants
10 years ago
Tom Pittenger
a8dda9f2ed
AP_Math: fix compile warnings re float constants
10 years ago
Jonathan Challinger
6baec4952b
AP_Math: add conversions to and from 3-1-2 euler angles
10 years ago
Jonathan Challinger
a1d4f40c16
AP_Math: change quaternion operator* and operator/ to const
10 years ago
Jonathan Challinger
07735fefa6
AP_Math: fix div by zero in quaternion
10 years ago
Andrew Tridgell
728dbf24db
AP_Math: fixed vector inequality test
...
many thanks to cat888
fixes issue #2039
10 years ago
Grant Morphett
300a02f4e4
AP_Math: Changes to fix the warnings in rover sitl build.
...
We are starting the process of resolving all the warnings in the
ardupilot builds of all vehicles and platforms.
10 years ago
Jonathan Challinger
5f7480b740
AP_Math: change fast_atan2 to use atan2f on fast CPUs
10 years ago
Paul Riseborough
255252f387
AP_Math: Fix bug in quaternion division
10 years ago
Paul Riseborough
17445d03f0
AP_Math: Add quaternion division
10 years ago
Randy Mackay
689cc9e298
AP_Math: fix example sketch
10 years ago
Andrew Tridgell
fefdc37a4d
AP_Math: fixed warnings on bounds checking in quaternion
10 years ago
Andrew Tridgell
6bb4a8c361
AP_Math: make location_path_proportion() and location_passed_point() more efficient
...
the dot product is much more efficient than the trigonometry. Thanks
to Paul for the suggestion
10 years ago
Jonathan Challinger
9e5a30d5ba
AP_Math: change ROTATION_YAW_293_PITCH_68_ROLL_180 to ROLL_90
10 years ago
Andrew Tridgell
f38f86ab8c
AP_Math: added location_path_proportion()
...
this can be used for glide slope calculations
10 years ago
Andrew Tridgell
38c5f25c70
AP_Math: fixed example build
10 years ago
Andrew Tridgell
8d54368650
AP_Math: fixed build warning
10 years ago
Randy Mackay
503d14428d
AP_Math: add new rotation to example rotation sketch
10 years ago
Randy Mackay
3d2c9910b3
AP_Math: add yaw 293, pitch 68, roll 180 rotation
10 years ago
Jonathan Challinger
cdd2199138
AP_Math: expand frame transformation test case for quaternions
10 years ago
Jonathan Challinger
3befe74afa
AP_Math: change quaternion class to use const references where optimal
10 years ago
Jonathan Challinger
70845882a7
AP_Math: fix up rotation test suite
10 years ago