35 Commits

Author SHA1 Message Date
jaredkw
3509329f30 Define M_PI float, change logical and to && 2016-05-11 18:35:05 -04:00
MaEtUgR
b2eb4d13d8 Matrix.setCol off by one bug fixed
The Column Vector you are copying from, only has one Column and it is indexed by 0 not 1.
I also completed the unit test stub that would have found this bug.
2016-05-05 13:18:51 +02:00
Matthias Grob
65679fbcbb Features and fixes
* added the trace function for a SquareMatrix

* added Vector3.hat() and it's counterpart Dcm.vee()
for skewsymskew symmetric matrix operations in relation to the cross product
see https://en.wikipedia.org/wiki/Hat_operator

* Matrix::write_string produced runtime errors when I used it in PX4 posix simulation, i simplified it

* a Matrix3f is a SquareMatrix

* added tests for SquareMatrix.trace, Vector3.hat and Dcm.vee

* added a test for quaternion initialisation from array

* preventing buffer overflows in Matrix.write_string method
2016-04-28 15:16:36 -04:00
James Goppert
07fba8322a Fix for effective cpp. 2016-03-18 20:56:41 -04:00
James Goppert
0e14e11183 Added support for attitude_estimator_q functions. 2016-03-15 06:35:13 -04:00
mcsauder
46c83a8c18 Correct a few indexing copy/paste errors that likely previously only functioned properly on square matrices. 2016-02-25 18:51:28 -07:00
James Goppert
95e3d7d6ce Added set function. 2016-02-16 14:54:15 -05:00
James Goppert
5a01e6c939 Added slice function for matrix. 2016-02-16 12:22:08 -05:00
James Goppert
a92d5c1338 Removed unneeded headers. 2016-01-24 02:44:25 -05:00
James Goppert
ffbe58ca10 Added better roundtrip euler test. 2016-01-24 00:39:21 -05:00
James Goppert
d761bd3721 Fixed formatting. Made traivs more verbose. 2016-01-23 23:33:25 -05:00
James Goppert
38211e1aff Fix testing mechanism. 2016-01-23 23:26:26 -05:00
James Goppert
cc800454d2 Formatting. 2016-01-11 22:05:34 -06:00
James Goppert
684a6b626d Merge branch 'quaternion'
Conflicts:
	test/attitude.cpp
2016-01-11 21:59:28 -06:00
Thomas Gubler
45e6012818 matrix scalar pre multiplication and general scalar multiplication for
quaternions
2015-12-26 13:15:39 +01:00
Thomas Gubler
99ac532746 remove unnecessary ; 2015-12-26 12:07:12 +01:00
Thomas Gubler
d999923a35 support for std::cout 2015-12-26 12:07:12 +01:00
Roman
10b395a782 added more quaternion methods 2015-12-19 09:47:03 +01:00
jgoppert
42f2e60b24 Added runge kutta integration. 2015-11-11 23:31:43 -05:00
jgoppert
9b995e19f3 Added vector2. 2015-11-07 14:27:12 -05:00
jgoppert
1fb0f33eb4 Removed old references to matrix.hpp. 2015-11-07 11:08:17 -05:00
Lorenz Meier
6abd2f782a Re-add Matrix.hpp 2015-11-07 09:42:33 +01:00
Lorenz Meier
713aee154b Remove both versions of matrix / Matrix 2015-11-07 09:41:38 +01:00
jgoppert
550108cf1d More testing. 2015-11-05 17:29:57 -05:00
jgoppert
7136e5b7d1 More work on gimbal lock case. 2015-11-05 16:54:19 -05:00
jgoppert
5566b3dc77 expm testing and fixes. 2015-11-05 15:39:41 -05:00
jgoppert
fd64e7e93a More testing and cleanup. 2015-11-05 12:28:39 -05:00
jgoppert
0062cbcbe2 Added more warnings, and fixed issues. 2015-11-05 11:17:54 -05:00
jgoppert
f7b1c63b86 Work on testing. 2015-11-05 10:44:21 -05:00
jgoppert
b2e9e1e3c7 Added kalman filter. 2015-11-04 18:58:29 -05:00
jgoppert
18f80462b7 Got coverage working for templates. 2015-11-04 12:11:32 -05:00
jgoppert
3477ff2adb Added coverage to build. 2015-11-04 03:29:01 -05:00
jgoppert
49035ed6a9 Added mode lines for vi. 2015-11-03 20:26:42 -05:00
jgoppert
a36ff9f1e5 Formatting and added Scalar. 2015-11-03 19:38:31 -05:00
jgoppert
76e86cf937 Initial commit. 2015-11-03 14:46:54 -05:00