murata
ec4cce15a1
AP_Math: Unify from print or println to printf.
8 years ago
Andrew Tridgell
67a2441b12
AP_Math: started a set of crc functions
...
these functions are often common between drivers
8 years ago
murata
e903cb9945
AP_Math: Change mask value to hexadecimal number.
8 years ago
Pierre Kancir
47f1a754c5
AP_Math: add some test for vector2 equality test
8 years ago
Pierre Kancir
eae093cd2a
AP_Math: add test for is_equal for int
8 years ago
Pierre Kancir
da49149d19
AP_Math: is_equal correct comparison for integer as epsilon doesn't exist.
...
Credit to Kwikius for the right solution
8 years ago
Pierre Kancir
ce734b5f7b
AP_Math: Remove unecessary check
8 years ago
Pierre Kancir
556993d7f0
AP_Math: Vector2 add == operator for int
8 years ago
Pierre Kancir
6bf1322633
AP_Math: polygon.cpp correct float comparison
8 years ago
Pierre Kancir
79a9e8dfad
AP_Math: Matrix_alg fix implicite cast from bool to float
8 years ago
Pierre Kancir
fb7a00799f
AP_Math: quaternion fix missing return
8 years ago
Andrew Tridgell
a8d10e8c2c
AP_Math: added get_random16()
8 years ago
murata
f9add59b58
Global: Aggregate the same definitions.
...
Global: Aggregate the same definitions.
8 years ago
Andrew Tridgell
b00fd95725
AP_Math: define Vector3l for += op
8 years ago
murata
c808ee2f49
Global: To nullptr from NULL.
...
RC_Channel: To nullptr from NULL.
AC_Fence: To nullptr from NULL.
AC_Avoidance: To nullptr from NULL.
AC_PrecLand: To nullptr from NULL.
DataFlash: To nullptr from NULL.
SITL: To nullptr from NULL.
GCS_MAVLink: To nullptr from NULL.
DataFlash: To nullptr from NULL.
AP_Compass: To nullptr from NULL.
Global: To nullptr from NULL.
Global: To nullptr from NULL.
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
Jonathan Challinger
80d9092993
AP_Math: remove rotateXY and rotateXYinv
8 years ago
Lucas De Marchi
ae53920e5b
build: don't build examples with old build system
...
We currently check examples are buildable with waf which doesn't need
the libraries to be specified in a make.inc file. Having the makefiles
there is misleading since people try to build and realize the build is
broken.
8 years ago
Lucas De Marchi
0d4caa3ccc
AP_Math: remove declaration of not implemented functions
9 years ago
Murilo Belluzzo
70942472d3
AP_Math: Matrix: Change deallocator to match allocator used
9 years ago
Lucas De Marchi
7b7e73680f
AP_Math: add USEC_PER_MSEC
9 years ago
Peter Barker
2047d53470
Math: move closest_point in from AC_Avoid
9 years ago
Peter Barker
779f78d471
AP_Math: vector3 perpendicular function
9 years ago
Peter Barker
f6cb0ffb6f
AP_Math: add Vector2f perpendicular
...
Add closest_distance_between_radial_and_point function
9 years ago
Peter Barker
b6d0b028c3
AP_Math: add operator[] to Vector2
9 years ago
Daniel Ricketts
249d95b413
AP_Math: add Polygon_outside and Polygon_complete functions
9 years ago
Leonard Hall
e0eecd56b2
AP_Math: use is_zero and float constants
9 years ago
Leonard Hall
7f933140c7
AP_Math: small formatting fix to quaternion rotation_matrix
...
No functional change
9 years ago
Leonard Hall
8afd29cc85
AP_Math: add quaternion::rotation_matrix_norm
9 years ago
Pierre Kancir
a8e5ff93b5
AP_Math: Correct missing declaration warning
9 years ago
Tom Pittenger
00aaa78757
AP_Math: add separate check_lat() and check_lng()
9 years ago
Andrew Tridgell
3969bde84a
AP_Math: fixed coverity warning in example
9 years ago
Peter Barker
cb16d0b6c6
AP_Math: correct examples build on px4
9 years ago
Tom Pittenger
7b4c503052
AP_Math: use new check_latlng helper
9 years ago
Tom Pittenger
ce9ecf9f3d
AP_Math: added check_latlng helper
9 years ago
Gustavo Jose de Sousa
ef61096e08
AP_Math: geodesic_grid tool: show triangle number for sections too
9 years ago
Gustavo Jose de Sousa
a6deb65d95
AP_Math: geodesic_grid tool: add option --section
9 years ago
Lucas De Marchi
1ac712fa65
AP_Math: fix is_zero() after template conversion
9 years ago
Lucas De Marchi
fa6f2c6b67
AP_Math: fix some coding style mistakes
...
- fix alignement of &
- remove const from bool arguments
9 years ago
Gustavo Jose de Sousa
390b196eda
AP_Math: AP_GeodesicGrid: add notice for auto generated code
9 years ago
Gustavo Jose de Sousa
b3068baa11
AP_Math: add geodesic_grid toolset
...
That was used to aid development AP_GeodesicGrid and understanding its
concepts.
9 years ago
Gustavo Jose de Sousa
9d34b3b996
AP_Math: AP_GeodesicGrid: make all methods static
...
Since all members are.
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
Gustavo Jose de Sousa
77223a7fcb
AP_Math: AP_GeodesicGrid: make data static
...
That gives the change of storing that data in flash storage in some
architectures. That doesn't happen yet though, some extra changes are required
for that to happen.
9 years ago
Gustavo Jose de Sousa
fd2428db34
AP_Math: AP_GeodesicGrid: reduce number of _neighbor_umbrellas items
...
Only the first half is necessary. The values for the other half can be derived.
9 years ago
Gustavo Jose de Sousa
43d9e00ab7
AP_Math: AP_GeodesicGrid: use uint8_t for _neighbor_umbrellas
...
All integers there are limited to the range [0,20), so uint8_t is enough.
9 years ago
Gustavo Jose de Sousa
54889e4175
AP_Math: AP_GeodesicGrid: reduce number of inverses by half
...
We don't actually need all of them, since the second half is for the opposite
triangles. In that case we just need to negate the resulting vector when
changing basis.
9 years ago
Gustavo Jose de Sousa
f31161ecb6
AP_Math: AP_GeodesicGrid: remove triangles
...
There's no need to keep those triangles, since we just need the inverses.
9 years ago
Gustavo Jose de Sousa
b34c04a4f9
AP_Math: test_geodesic_grid: test also non-centroid vectors
9 years ago
Gustavo Jose de Sousa
8e8ab3af96
AP_Math: AP_GeodesicGrid: remove section_triangle() function
...
That function was only being used by the unit tests and the benchmark. In order
to remove memory usage, the triangles will be removed, since we don't actually
need to keep them in real situations. Thus, this patch removes that function
and copy those triangles to the test and benchmark.
9 years ago