Doug Weibel
d4fff166cf
Add an accessor for the DCM drift correction integrator to monitor performance
...
Also made the get_health accessor an inline function.
2011-11-05 09:02:23 -06:00
Doug Weibel
beb6c4dbf4
Changed the DCM drift correction integrator limit to a vector magnitude of 30 degrees/second.
...
The drift correction integrator limit previously was near/at the gyro saturation limit. If we have that much drift there is a serious hardware problem. 30 degrees/second is arbitrary but should handle all temperature variation, etc.
2011-11-05 09:01:20 -06:00
Doug Weibel
b105e7fd41
In case of DCM renorm "blow-up" reset the drift correction integrators
...
This should aid in recovery if we loose the AHRS solution and have to force to initial orientation. Also removed some old commented out code moved to the IMU object
2011-11-05 08:59:16 -06:00
Andrew Tridgell
d96fbf8acf
DCM: re-work the DCM to use the new IMU/ADC features
...
this gives us higher resolution DCM calculations, with much more
accurate timing of the update delta time.
2011-09-17 14:58:02 +10:00
Jason Short
e8fcf72966
Added a state machine intended to run at 250hz to the DCM. Spread load of DCM out to lower CPU.
2011-09-11 11:03:55 -07:00
jasonshort
ce7dc48026
added ki_Yaw private variable and accessors.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2778 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-07-08 03:57:12 +00:00
jasonshort
db0e5760a4
removed redundant FP calcs for speed up.
...
added ability to alternate normalization and drift correction. Not fully implemented, needs further testing.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2691 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-26 22:54:08 +00:00
tridge60@gmail.com
88b00edaf3
fixed warnings in AP_DCM
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2559 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-15 12:24:51 +00:00
jasonshort
153c166ef3
Based on Doug's recommendation - increased Accel weighting to .66 – 1.33 Gs
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2557 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-14 23:37:43 +00:00
jasonshort
b07c32acd0
Added dynamic setting of kp_rollpitch, ki_rollpitch, kp_yaw.
...
Added three constants for kp_rollpitch, (high, med -default, low)
Functionally equivalent to prior version.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2550 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-12 23:49:01 +00:00
deweibel@gmail.com
0642e1144d
Fix imu_health metric
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1728 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-02-25 20:09:00 +00:00
DrZiplok@gmail.com
19f6c999ce
We should call imu.update() before asking for accel/gyro values so that we get timely, fresh numbers.
...
Most other consumers of the accel/gyro values should be asking us for them anyway. At that point, what they are getting are the values we sampled here.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1376 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-30 07:52:35 +00:00
jasonshort
9abc190940
cosmetic
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1313 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-28 18:34:55 +00:00
deweibel
1da23bc3c0
Fix bug in transposed DCM matrix accessor
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1134 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-14 18:39:02 +00:00
jasonshort
7945937874
added ability to get the transpose of the DCM
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1116 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-13 04:01:26 +00:00
jasonshort
2f2aaa88fd
Added dynamic setting of compass
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1010 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-04 06:24:21 +00:00
jasonshort
a142d8ee7d
imu enhancements
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1007 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-02 22:09:25 +00:00
jasonshort
b62c287f5e
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1002 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-02 05:54:36 +00:00
james.goppert
110685f880
Updated DCM library.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@996 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-02 05:13:35 +00:00
jasonshort
93206020cb
Moved Health to DCM, Centripetal correct
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@988 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-01 22:52:11 +00:00
jasonshort
275624358d
boolean to disable centrifugal correction.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@987 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-01 19:53:40 +00:00
jasonshort
d209f3d59e
update - See ArducopterMega in Branch for implementation details
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@986 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-01 07:58:04 +00:00