Andy Piper
87a369727a
AP_Math: specialize float and double functions to use fabsf() and simple comparison otherwise
3 years ago
Andy Piper
fbaa2e7b09
AP_Math: allow selection of inline version of vector operations for performance.
3 years ago
Andrew Tridgell
0f2f0d4cb2
AP_Math: allow for double EKF build
4 years ago
Michelle Rossouw
f95cb16434
AP_Math: Add Vector2f+z initialiser for Vector3f
4 years ago
Andrew Tridgell
9b91cfe4ee
AP_Math: implement double versions of some position control methods
4 years ago
Andrew Tridgell
3315ec5acc
AP_Math: added tofloat() and todouble() methods to Vector2 and Vector3
4 years ago
Andrew Tridgell
fe4abc521a
AP_Math: make vector3 xy() method return a reference
4 years ago
Andrew Tridgell
f19b604a0c
AP_Math: added xy() method on Vector3
...
useful for getting xy length
4 years ago
Rishabh
547f0efd57
AP_Math: Add segment to plane intersection function
4 years ago
Leonard Hall
5c47c0a131
AP_Math: Fix before squash
4 years ago
Andrew Tridgell
53e5bef0c2
AP_Math: added rotate_xy to Vector3f
...
this makes it easy to rotate a vector3f in xy plane for earth/body
navigation
4 years ago
Randy Mackay
e2b46d05dc
AP_Math: Vector2,3 get limit_length methods
4 years ago
Rishabh
1262d73071
AP_Math: Add new methods to support 3D avoidance
4 years ago
Rishabh
79d5e432ee
AP_Math: Add new method to extrapolate 3D vector given distance, yaw, pitch
4 years ago
Andrew Tridgell
c0b20881d6
AP_Math: allow vector3.h to be included earlier in include chain
4 years ago
Rishabh
0779cf436e
AP_Math: Added function to calculate shortest distance betwwen point and line segment in 3D
5 years ago
Peter Barker
2f8c0dd65b
AP_Math: remove use of Vector3 as function
5 years ago
Andrew Tridgell
a56a7f7da4
AP_Math: added more vector3f ops for lua
5 years ago
Peter Barker
4c434c2df9
AP_Math: add WARN_IF_UNUSED to bool methods
6 years ago
Pierre Kancir
85b83ed6af
AP_Math: remove non-ascii caracter
6 years ago
Pierre Kancir
f1270b4b22
AP_Math: const correctness
6 years ago
Lucas De Marchi
5521fce676
AP_Math: add non-uniform Vector3f scaling
6 years ago
Randy Mackay
e892bbbac0
AP_Math: add Vector3f::distance_to_segment
8 years ago
Randy Mackay
e6328c350d
AP_Math: add Vector3f::distance_squared
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Peter Barker
779f78d471
AP_Math: vector3 perpendicular function
9 years ago
Gustavo Jose de Sousa
3b05ec1157
AP_Math: make vectors and matrix constructors constexpr
...
That allows some object to be constructed at compile time.
9 years ago
Ricardo de Almeida Gonzaga
481e3a2af6
AP_Math: Fix typos
9 years ago
Lucas De Marchi
ab1fa4b435
AP_Math: reorganize headers
...
Sort and add pragma once where needed.
9 years ago
Ricardo de Almeida Gonzaga
5bd034a5a8
Global: start using cmath instead of math.h
9 years ago
Lucas De Marchi
b4a8a0b961
AP_Math: replace header guard with pragma once
9 years ago
Peter Barker
80bc7a50d7
AP_Math: define MATH_CHECK_INDEXES
...
Wrapped in ifndefs so the top-level Makefile can override
Assume MATH_CHECK_INDEXES is always defined
9 years ago
Jonathan Challinger
7ed8b3814f
AP_Math: add rotate_inverse to Vector3
9 years ago
Lucas De Marchi
fb28f426da
AP_Math: remove check for AVR CPUs
...
Remove the checks for HAL_CPU_CLASS > HAL_CPU_CLASS_16 and
HAL_CPU_CLASS >= HAL_CPU_CLASS_75. Corresponding dead code will be
removed on separate commits.
9 years ago
Tom Pittenger
bdda11b327
AP_Math: compiler warning: is_zero special case for vector3.h in a template
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
Niels Joubert
879eb5936b
AP_MATH: Adding WGS GPS conversions, CRC16 checks, and double-precision Vectors and Matrices
11 years ago
Andrew Tridgell
4c99d09265
AP_Math: fixed build of vectorN class on PX4
11 years ago
Andrew Tridgell
2c1e0ba130
AP_Math: added vectorN class, and index checking
11 years ago
Andrew Tridgell
828eed1984
AP_Math: allow vector3 and matrix3 objects to be used as arrays
11 years ago
Andrew Tridgell
db400ffa51
AP_Math: added is_zero() method to Vector3
11 years ago
Andrew Tridgell
d2deee07df
AP_Math: fixed zero function for integer vectors
11 years ago
Andrew Tridgell
97b7130bb9
libraries: update license header to GPLv3
...
we switched to GPLv3 a long time ago, but neglected to update the
per-file license headers
12 years ago
Andrew Tridgell
468e55d425
AP_Math: added two new vector/matrix ops for kalman airspeed filter
12 years ago
Andrew Tridgell
5024da2695
AP_Math: fixed indent-tabs-mode
12 years ago
Andrew Tridgell
43c3c60de2
AP_Math: moved a lot of vector templates to cpp from .h
...
this reduces the code size quite a lot on AVR
12 years ago
James Bielman
5631f865b2
Update floating point calculations to use floats instead of doubles.
...
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
12 years ago
uncrustify
57d4db2be4
uncrustify libraries/AP_Math/vector3.h
13 years ago
Andrew Tridgell
468dfe3faa
AP_Math: the windows arduino build is missing acosf()
13 years ago
Andrew Tridgell
dd200cba31
Math: added location functions to math library
...
these do common calculations on struct Location
13 years ago