Julian Kent
22bf63cb71
A smaller codesize wrap, since it gets inlined in many places
6 years ago
Matthias Grob
74ace7d1d5
helper test: cover wrap close to limits cases ( #84 )
6 years ago
Tanja Baumann
26fd962cbe
fix bug in matrix wrap function ( #83 )
6 years ago
Julian Kent
4a4309327a
better API comment
...
Co-Authored-By: Julian Oes <julian@oes.ch>
6 years ago
Matthias Grob
31450c407c
Matrix: use existing print() if isEqual test fails
6 years ago
Matthias Grob
938274fce5
helper test: add extensive wrap tests
6 years ago
Matthias Grob
315010bae1
helper_functions: generalize wrap function to any range
6 years ago
Matthias Grob
007c7c58c4
fix math defines to have M_PI and M_TWOPI
6 years ago
Martina Rivizzigno
cc084e0791
matrix: add method to check all values are nan ( #82 )
6 years ago
kritz
84b3da227c
Canonical Quaternion with tests ( #81 )
6 years ago
Matthias Grob
56b069956d
slice test: fix trailing whitespace style
6 years ago
Oskar Weigl
5ccfa74c72
Fix const error
6 years ago
Oskar Weigl
eea6b59973
Implement slice as copy loop
6 years ago
Oskar Weigl
93375fbd3c
Fix copy-paste error
6 years ago
Oskar Weigl
5872bbc28c
Add slicing tests that are not pure row slicing
...
I had a look at the implementation of `slice`, and I found it odd that it doesn't have a copy loop. The current implementation does a raw memcpy of the underlying contiguous row-major data. As far as I can tell, this could only slice along rows. Interestingly, I found that the tests only tested for slicing along rows, so this bug would go unnoticed.
I added some tests that checks slicing along columns also. I have a feeling this would break, and we need to fix the implementation of `slice`. However I could be wrong, and hence I'm submitting these tests first to verify.
6 years ago
TSC21
ec436d5aee
define FLT_EPSILON; be descriptive about upper_right_triangle() method
6 years ago
TSC21
7355a29a2a
tests: use __FLT_EPSILON__ in comparisons
6 years ago
TSC21
7ab2b24e65
tests: urt: refactor
6 years ago
TSC21
4aab44fe01
Travis CI: update MacOS version to use
6 years ago
TSC21
707967d117
add test to .urt()
6 years ago
TSC21
210c76c04b
add test to setNaN()
6 years ago
TSC21
96cb9ab146
add NaN value set for Matrix; add return of URT of a matrix
6 years ago
Daniel Agar
6b0777d815
stdlib_imports cinttypes currently unavailable in NuttX toolchain ( #79 )
6 years ago
Matthias Grob
18fba8221c
quaternion: improve comments
6 years ago
Matthias Grob
a4f39c0f89
quaternion: reuse existing dot product
6 years ago
Matthias Grob
9c0acfba36
Matrix: remove unsafe copyToRaw method
...
It used a pointer and could therefore not do correct type checking
for index out of bound or struct memebr order.
Has to be considered unsafe and bad practise.
We should switch to arrays as representation for vectors
inside the messages instead of foo_x, foo_y, foo_z fields.
6 years ago
Beat Küng
0d3bff5e00
Vector2: add explicit constructor for Vector3
...
Initialize from the first 2 elements.
6 years ago
Beat Küng
807472bfd7
README: document how to run tests
6 years ago
Bart Slinger
30d5a79432
testing float/double with Type template
7 years ago
Bart Slinger
707e288019
explicit casting
7 years ago
Bart Slinger
480c5f1f8e
static assert M>=N. floats to Type, arguments as const reference
7 years ago
Bart Slinger
7495794386
test zero divisions
7 years ago
Bart Slinger
3f2d3cf58d
fix a div/0 condition
7 years ago
Bart Slinger
983a3f0212
use Matrix and Vector class for A and tau
7 years ago
Bart Slinger
98b8e2d43b
formatting
7 years ago
Bart Slinger
0009328257
least squares solver for MxN matrices using QR householder algorithm
7 years ago
Daniel Agar
dc3af80977
constructors use array size rather than pointers
7 years ago
Daniel Agar
f1bee775a0
use default constructors and skip unnecessary initialization
7 years ago
Daniel Agar
1bcf48bd82
Quaternion from_dcm don't pass by value
7 years ago
Roman Bapst
b815fc97c4
replace quiet_NaN() with INFINITY ( #70 )
...
- solves undefined symbols for QURT
Signed-off-by: Roman <bapstroman@gmail.com>
7 years ago
Daniel Agar
03a3e3ad46
helper_functions add wrap_2pi
7 years ago
Daniel Agar
abc8f82d49
travis-ci add codecov.io ( #69 )
7 years ago
Daniel Agar
21d47424c6
Quaternion mark const helpers const
7 years ago
James Goppert
e7c95fa027
Fix README/cmake format.
7 years ago
James Goppert
d142ac234c
Fix coverage and bug in matrix equal test.
7 years ago
Daniel Agar
50446a55c8
Matrix add == and != operators
7 years ago
Daniel Agar
61af508755
helper_functions include required px4_defines header
7 years ago
Daniel Agar
41a1cc7583
LICENSE minor changes to template
7 years ago
Matthias Grob
f835d39017
Quaternion/Vector: Small refactor for review: put more comments, switched type conversions, took out default destination vector because confusing
7 years ago
Matthias Grob
af2610ec04
Test: added check for quaternion vector to vector rotation constructor
...
including all the parallel vector corner cases
7 years ago