Julian Oes
8ff237c69f
Remove size optimization for individual modules
...
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Martin K. Schröder
97d9fd38be
Update Matrix.hpp ( #4966 )
...
This was horribly wrong. Matrix is first cast into a matrix of size NxM (which is supposed to be the size of the result - NOT the starting point) so the transpose result becomes garbage. Instead make "Me" an MxN matrix as the original. Took me a whole evening to figure out this problem. Now my Kalman filter finally returns good results.
2016-07-03 12:29:58 +02:00
Lorenz Meier
fad07a45b9
Mathlib: Optimize for sixe
2016-07-01 18:21:35 +02:00
Beat Küng
8a12dee125
cmake: remove all module.mk files & cmake conversion script ( #4918 )
...
It seems these files are leftovers.
2016-06-28 09:26:36 +02:00
Beat Küng
dae12f1238
mathlib: replace math::{min,max,constrain} with template methods
2016-05-14 11:27:07 +02:00
Beat Küng
7055d3c929
fix tecs.cpp: use UINT64_C for uint64_t constant instead of UUL
2016-05-14 11:27:07 +02:00
James Goppert
d02abf2cc0
Removed CMSIS.
2016-03-25 18:43:43 +01:00
Roman Bapst
4e824e55d7
Merge pull request #3323 from PX4/att_est_q_declination
...
Attitude estimator Q: fix magnetic declination inducing gyro bias growth
2015-12-04 16:46:36 +01:00
Anthony Kenga
a5a3357928
Attitude estimator Q: fix magnetic declination inducing gyro bias growth
2015-12-04 16:11:57 +01:00
Andreas Antener
08a1797eec
changed isnan checks and cmake compiler condition for apple machines
2015-12-03 15:39:41 +01:00
jgoppert
4636670130
Updated inverse in mathlib for new matrix call.
2015-11-08 12:18:47 -05:00
Lorenz Meier
ac893f26fb
Update math lib include path
2015-11-07 09:47:58 +01:00
jgoppert
27df787bff
Separated matrix lib into own repo.
2015-11-05 20:27:48 -05:00
jgoppert
99fb498cd2
Resurrect controllib testing.
2015-10-28 22:36:47 +01:00
jgoppert
d198c6a324
Removed comment.
2015-10-24 15:59:11 -04:00
jgoppert
6cce823dc6
Replaced wigen with custom matrix lib.
2015-10-24 15:10:20 -04:00
Lorenz Meier
fa5071b3c5
Remove module.mk files to prevent confusion of adopters upgrading
2015-10-06 11:23:20 +02:00
James Goppert
bf18c84652
Cleanup of module building.
2015-09-09 23:00:58 -04:00
James Goppert
1d6b31d196
Switch to cmake build system.
2015-09-07 20:37:45 -04:00
philipoe
64248f3ad5
mathlib: Bugfix to print function
2015-08-28 17:15:57 +02:00
philipoe
32ae3026be
Mathlib: Fix to matrix division operator
2015-08-26 09:31:32 +02:00
Nghia Ho
a4726292b2
fixed double promotion warning when doing printf
2015-08-11 21:30:05 -07:00
Lorenz Meier
9745d16905
Merge pull request #1977 from devbharat/fix_issue_1963
...
Shifted the set() function for Matrix3x3, Vector2, Vector3, Vector4 to a...
2015-06-15 17:35:40 +02:00
Mark Charlebois
db52227409
Merge remote-tracking branch 'upstream/master' into linux
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
Conflicts:
src/modules/commander/accelerometer_calibration.cpp
2015-05-06 15:51:39 -07:00
Mark Charlebois
4cedcfc58e
math/test/test.cpp has invalid calls
...
The function calls ceil() and floor() but passes an int and there
is obviously no implementation for that so clang fails.
It seems like exp should be a float from this code.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-24 01:40:46 -07:00
Mark Charlebois
f3b5076d70
Linux to posix conversion
...
Changed "linux" target to "posix". Most of the changes are shared with
QuRT and with OSX. The Linux specific parts are in for i2c which uses
<linux/i2c.h> and <linux/i2c-dev.h>.
There is also a check for __PX4_LINUX in mavlink for a tty ioctl that is
not supported.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-21 09:53:09 -07:00
Mark Charlebois
440fc306a9
Added accelerometer simulator
...
The simulator satisfies the dependencies for an accelerometer
being present.
The accel code compiles but is not fully functional.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 11:35:47 -07:00
Mark Charlebois
62f8bd6679
Linux build support for some libs
...
The following libs can now be built under Linux:
lib/mathlib
lib/geo
lib/geo_lookup
The constants used for ROS are now shared with Linux in
px4_defines.h
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 10:57:01 -07:00
Mark Charlebois
9758112e31
Use px4_config.h instead of nuttx/config.h
...
Modified code to use OS independent header file for config settings.
Signed-off-by: Mark Charlebois <charlebm@gmail.com >
2015-04-20 10:55:41 -07:00
Anton Babushkin
7761e461e9
mathlib quaternion: atan2 & asin changed to atan2f & asinf
2015-04-12 13:28:43 +02:00
Anton Babushkin
dc2bb2a85e
attitude_estimator_q added
2015-04-12 01:47:48 +02:00
Bharat Tak
f7bd105340
Shifted the set() function for Matrix3x3, Vector2, Vector3, Vector4 to appropriate derived class.
2015-04-03 11:34:50 +02:00
Daniel Agar
8aae66b893
trivial code style cleanup round 2
2015-03-27 23:38:58 -04:00
Roman Bapst
7a0db340f7
added quaternion methods for inverse and vector rotation
2015-03-02 22:44:32 +01:00
Thomas Gubler
59e623a2eb
quaternion from dcm: comment and reference
2015-02-25 17:50:16 +01:00
tumbili
a252f4a991
fixed quaternion method from_dcm()
2015-02-23 22:30:49 +01:00
Lorenz Meier
3bb0008af5
Ashtech driver: Avoid unnecessary double precision conversion calls
2015-02-15 10:17:00 +01:00
Thomas Gubler
dcdde8ea88
Merge remote-tracking branch 'upstream/master' into ros_messagelayer_merge
...
Conflicts:
src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
src/modules/uORB/topics/vehicle_attitude.h
2015-01-21 14:41:03 +01:00
Mark Whitehorn
3c98c7119e
use non-uniform 1st order IIR lowpass filters for baro_gps_offset estimation
2015-01-13 09:06:00 -07:00
Thomas Gubler
74af4807a1
Matrix.hpp: remove wrong and correct formatting changes which are not on master for clarity
2015-01-08 08:26:04 +01:00
Thomas Gubler
f37fdd95af
add and use PX4_ROS preprocessor define
2015-01-06 19:45:57 +01:00
Thomas Gubler
ef485177ac
make Matrix.hpp more consistent with upstream
2015-01-05 10:25:39 +01:00
Thomas Gubler
16b9f666e7
Merge remote-tracking branch 'upstream/master' into dev_ros
...
Conflicts:
src/lib/mathlib/math/Matrix.hpp
src/modules/mc_att_control/mc_att_control_main.cpp
src/modules/uORB/topics/vehicle_status.h
src/platforms/px4_includes.h
2015-01-05 10:02:07 +01:00
Thomas Gubler
16c66669c2
dummy attitude estimator copies attitude from gazebo
2014-12-30 14:53:53 +01:00
Rowland O'Flaherty
4d0d6f09ce
Fixed loop limit errors in Matrix.h
...
In few of the overloaded operators the loop limits (i.e. M and N) were swapped.
2014-12-18 16:56:28 -08:00
Thomas Gubler
9520983e08
lots' of header juggling and small changes to make mc att control compile for NuttX and ROS
2014-12-16 08:24:51 +01:00
Roman Bapst
efe0938e99
removed comment
2014-11-13 13:48:40 +01:00
Roman Bapst
d931465382
added ifdef guard
2014-11-13 13:48:18 +01:00
Roman Bapst
003b326c77
applied fix_code_style.sh
2014-11-13 11:16:22 +01:00
Roman Bapst
794a89e711
added more digits to pi/2
2014-11-13 10:51:54 +01:00