170 Commits

Author SHA1 Message Date
Andreas Bircher
af2e6d952e correcting comments 2016-05-15 18:42:21 +02:00
Andreas Bircher
34e6e2a941 refactoring rotation classes and adding initial description 2016-05-15 18:42:21 +02:00
jaredkw
3509329f30 Define M_PI float, change logical and to && 2016-05-11 18:35:05 -04:00
James Goppert
4d33092bcb Removed lcov testing from travis. 2016-05-09 12:19:26 -04:00
James Goppert
dd8ff8db12 Made coverage html output optional. 2016-05-09 12:13:00 -04:00
James Goppert
061609322a Added command line output for coverage. 2016-05-09 12:01:20 -04:00
James Goppert
32ad3989f2 Fix lcov install on travis. 2016-05-09 11:55:45 -04:00
James Goppert
f4902fafb9 Added lcov package for coverage test. 2016-05-09 11:53:18 -04:00
James Goppert
155202f6b0 Found a few coverage gaps with local coverage testing. 2016-05-09 11:49:45 -04:00
James Goppert
6efa3c1cb5 Added make coverage to travis. 2016-05-09 11:34:26 -04:00
James Goppert
3f77991388 Merge branch 'MaEtUgR-maetugr-fix2' 2016-05-09 11:24:55 -04:00
James Goppert
8b7eae3b4a Merge branch 'maetugr-fix2' of https://github.com/MaEtUgR/Matrix into MaEtUgR-maetugr-fix2 2016-05-09 11:24:28 -04:00
James Goppert
bd8420fcf6 Added example of assignment to already created object. 2016-05-09 11:12:06 -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
711b57d2d4 Added unit function that returns normalized vector. 2016-03-15 18:09:48 -04:00
James Goppert
0e14e11183 Added support for attitude_estimator_q functions. 2016-03-15 06:35:13 -04:00
James Goppert
6c04605531 Added conversion for scalar to vector. 2016-02-26 06:10:09 -05:00
James Goppert
2d27cd79d3 Added scalar to matrix conversion. 2016-02-26 05:56:21 -05:00
James Goppert
6974f97b1c Added scalar const conversion operator. 2016-02-26 05:47:24 -05:00
James Goppert
7b969094cb Fix for scalar type. 2016-02-26 05:33:16 -05:00
James Goppert
3917ef1992 Merge branch 'master' of github.com:PX4/Matrix 2016-02-26 03:39:28 -05:00
James Goppert
15865897d5 Added pow. 2016-02-26 03:39:04 -05:00
James Goppert
dd30028823 Merge pull request #14 from mcsauder/master
Matrix index correction to allow non-square matrices to evaluate properly.
2016-02-25 16:36:14 -05: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
1ae114b3d2 Improved rk4 integration to allow longer time interval than 1 step. 2016-02-16 10:53:12 -05:00
James Goppert
ce30542dba Fix output for unit test. 2016-01-25 13:54:13 -05:00
James Goppert
1778ac199c Fixed euler wrapping. 2016-01-25 13:40:51 -05:00
James Goppert
a92d5c1338 Removed unneeded headers. 2016-01-24 02:44:25 -05:00
James Goppert
e639a3612f Fix typo. 2016-01-24 02:30:54 -05:00
James Goppert
d8e397c010 Merge pull request #10 from PX4/euler_fix
fix euler calculation
2016-01-24 01:52:40 -05:00
James Goppert
5aef810e7c Fixed euler angles. 2016-01-24 01:50:34 -05:00
James Goppert
6e6033a1af Merge branch 'master' into euler_fix 2016-01-24 00:41:12 -05:00
James Goppert
b98ac75452 Formatting. 2016-01-24 00:39:59 -05:00
James Goppert
ffbe58ca10 Added better roundtrip euler test. 2016-01-24 00:39:21 -05:00
James Goppert
b9bfadb0cc Fix for travis. 2016-01-24 00:00:22 -05:00
James Goppert
faee66273b Turned back on testing flag. 2016-01-23 23:58:43 -05:00
James Goppert
20a1f902b1 Merge branch 'master' into euler_fix
Conflicts:
	.travis.yml
	test/attitude.cpp
2016-01-23 23:56:35 -05:00
James Goppert
cc2804d6a6 Merge pull request #13 from PX4/testing
Testing
2016-01-23 23:38:13 -05:00
James Goppert
0969b0ae56 Removed uncessary print. 2016-01-23 23:35:44 -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
Lorenz Meier
6009709986 Merge pull request #11 from PX4/dspal_fix
Added dspal_math.h for missing constants
2016-01-21 23:23:41 +01:00
Mark Charlebois
306f0ac25d Added dspal_math.h for missing constants
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2016-01-21 12:45:07 -08:00
Lorenz Meier
48a3288753 Fix QuRT build 2016-01-18 13:39:46 -08:00
James Goppert
fa31c61f2c Fix for euler. 2016-01-14 15:24:37 -05:00
Roman Bapst
a22a47fe15 fix euler calculation
Conflicts:
	matrix/Euler.hpp
2016-01-14 15:51:28 +01:00