Jonathan Challinger
e20687fbce
AP_AHRS: cache trim rotation
2016-10-13 10:02:14 +11:00
Jonathan Challinger
a03fa2d3cf
AP_AHRS: use exact matrix for trim rotations
2016-10-13 10:02:13 +11:00
Andrew Tridgell
ea823a818c
AP_AHRS: enable EKF2 by default in AHRS
2016-01-05 16:42:01 +11:00
Jonathan Challinger
6682b27456
AP_AHRS: rename get_dcm_matrix to get_rotation_body_to_ned
2015-12-18 18:08:37 +11:00
Lucas De Marchi
dd784189a1
AP_AHRS: remove comment about avr-libc
2015-11-04 12:14:16 +11:00
Lucas De Marchi
831d8acca5
Remove use of PROGMEM
...
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:
git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'
The 2 commands were done so we don't leave behind spurious spaces.
AVR-specific places were not changed.
2015-10-30 14:35:16 +09:00
Andrew Tridgell
0677c2c80c
AP_AHRS: run astyle for formatting
2015-09-23 17:31:00 +10:00
Andrew Tridgell
7ba45444a2
AP_AHRS: added selection of EKF type using AHRS_EKF_TYPE
2015-09-23 11:57:18 +10:00
Grant Morphett
b2751d876c
AP_AHRS: Fixed spelling error in parameter desc.
2015-09-16 09:33:30 +09:00
Gustavo Jose de Sousa
54d5277842
AP_AHRS: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
2015-08-11 16:28:42 +10:00
Andrew Tridgell
00ca493860
AP_AHRS: prevent a floating exception in update_trig
2015-05-27 22:10:39 +10:00
Paul Riseborough
c2ac80cc63
AP_AHRS: Prevent copter from switching to DCM unless EKF has severe errors
2015-05-13 16:11:13 +09:00
Randy Mackay
6e30093924
AP_AHRS: correct sanity checks on update_trig
2015-04-23 09:45:43 +09:00
Jonathan Challinger
6a6ccb4f32
AP_AHRS: add sanity checks
2015-04-22 21:50:51 +09:00
Randy Mackay
98efcd5f03
AHRS: always use EKF for copter
2015-03-19 15:15:51 +09:00
Andrew Tridgell
ed0a56cc3c
AP_AHRS: cope with the changed semantics of airspeed.use()
2015-01-20 11:27:58 +11:00
Randy Mackay
9e731550fd
AHRS: default EKF on for copter
2014-12-01 17:29:39 +09:00
Andrew Tridgell
26de54c29a
AP_AHRS: cope with 90 degree pitch in update_trig()
...
this prevents a numerical error in Replay
2014-10-25 11:21:04 +11:00
Andrew Tridgell
4ad643b233
AP_AHRS: use a common function for updating the CD values
...
this ensures the wrapping of yaw is consistent between the 3 use cases
2014-10-15 13:18:08 +11:00
Andrew Tridgell
f07e4dee52
AP_AHRS: convert to new GPS API
2014-04-01 06:38:24 +11:00
Andrew Tridgell
0b45d2bc06
AP_AHRS: removed the AHRS_GPS_DELAY parameter
...
the best value has turned out to be 1, and tweaking it has not turned
out to be useful, so this simplifies the code in preparation for
adding the anti-aliasing handling with multiple accelerometers
2014-02-27 08:57:44 +11:00
Andrew Tridgell
392995ef84
AP_AHRS: make AHRS handle altitude
...
AHRS now holds the home position
2014-02-15 05:29:47 +11:00
Andrew Tridgell
8c5cde4efd
AP_AHRS: allow NavEKF to be enabled at runtime with AHRS_EKF_USE=1
2014-02-15 05:28:10 +11:00
Randy Mackay
3dc6ea682c
AHRS: add update_trig
...
Calculates helper trig values including cos_roll, cos_pitch
2014-02-08 18:16:39 +09:00
Paul Riseborough
f2c2811ef3
AP_AHRS & AP_Math: fixed bug in use of AHRS_TRIM parameters
2014-01-19 07:19:43 +11:00
Andrew Tridgell
a96840e194
AP_AHRS: changed default GPS lag to 1 sample
...
this is based on detailed logs from a LEA-6H and NEO-7N
2013-12-30 10:33:48 +11:00
Andrew Tridgell
410d356979
AP_AHRS: make airspeed_estimate const
2013-12-29 18:39:01 +11:00
Andrew Tridgell
56bcda7252
AP_AHRS: lower default roll and yaw drift correction speed
...
the gyros sustain accuracy over much longer time periods than
previously expected
2013-11-05 14:52:39 +11:00
Andrew Tridgell
02d6f012ce
AP_AHRS: added accel sum delay buffer to account for GPS lag
2013-11-04 21:21:42 +11:00
Andrew Tridgell
c56017d8f1
AP_AHRS: added in new orientations
2013-08-30 14:19:17 +10:00
Andrew Tridgell
587fb58720
AP_AHRS: fixed license text
...
APM is under GPL, not LGPL
2013-08-30 13:01:32 +10:00
Andrew Tridgell
57d2dd814d
AP_AHRS: added get_position_lag() call
...
provide position lag to libraries
2013-08-13 12:07:35 +10:00
Andrew Tridgell
0d36832b82
AP_AHRS: use const reference not pointers for locations
...
this makes life easier for the new AP_Mission library
Pair-Programmed-With: Brandon Jones <brnjones@gmail.com>
2013-08-05 10:24:12 +10:00
Andrew Tridgell
ec73fadc45
AP_AHRS: added true airspeed support in AHRS
...
use true airspeed for wind calculations, and allow other drivers to
ask for the current ratio
2013-07-22 12:50:01 +10:00
Andrew Tridgell
b721bcc129
AP_AHRS: removed get_roll_rate_earth() and get_pitch_rate_earth()
...
these are not used any more
2013-07-13 21:45:58 +10:00
Randy Mackay
7860d06b91
AHRS: typo fix for ORIENTATION param description
2013-07-10 14:56:48 +09:00
Andrew Tridgell
279f6d00f0
AP_AHRS: changes for GPS field changes
2013-07-10 14:04:22 +10:00
Randy Mackay
ded31582de
AP_AHRS: add Roll90Yaw90 to parameter description
...
Thanks to Rainer Walther for spotting this
2013-07-07 13:06:40 -10:00
Andrew Tridgell
14628990e6
AP_AHRS: make wind estimation configurable
...
rover doesn't want it
2013-05-24 11:21:42 +10:00
Randy Mackay
b27ddf0f63
AP_AHRS: add parameter descriptions
2013-05-21 15:39:03 +09:00
Andrew Tridgell
c08c084191
AP_AHRS: added get_projected_position()
...
this is used to project the position forward by the GPS lag
2013-05-17 08:32:21 +10:00
Andrew Tridgell
a17b85c661
AP_AHRS: use vectors for ground vector complimentary filter
2013-05-13 11:27:55 +10:00
Andrew Tridgell
943a1d8c8d
AP_AHRS: added AHRS_GPS_MINSATS option
...
if the number of visible satellites is below AHRS_GPS_MINSATS then
don't use the GPS for acceleration correction for attitude
2013-05-05 12:48:01 +10:00
Andrew Tridgell
ba83950fc4
libraries: replace constrain() with constrain_float()
...
this makes the type much more obvious. Thanks to Tobias for the
suggestion.
2013-05-02 10:25:40 +10:00
Andrew Tridgell
014c9376e7
AP_AHRS: use const references where possible
2013-04-22 13:26:49 +10:00
Andrew Tridgell
a4d25f5a82
AHRS: removed AHRS_BARO_USE option
...
this option has caused users too much trouble. The vertical velocity
is too noisy from the baro
2013-04-15 10:52:31 +10:00
Andrew Tridgell
87b0fb05ce
AHRS: changed default RP and YAW gain to 0.3
...
this reduces the impact of hard acceleration on takeoff, and reduces
the impact of GPS lag
Note that this doesn't affect copters, as they override to 0.1
2013-04-15 10:52:31 +10:00
priseborough
b63d0969b7
AP_AHRS: Addition of a first order complementary filter to AP_AHRS::groundspeed_vector
...
Addition of a complementary filter to estimation of the ground velocity vector for use by the L1-nav
2013-04-12 12:48:09 +10:00
Andrew Tridgell
05ecb8d8fa
AP_AHRS: fixed functions that need to be virtual
...
functions overridden in a child class need to be marked virtual, or
you get the parent class function
2013-04-12 12:48:08 +10:00
Andrew Tridgell
ee81b0f729
AP_AHRS: added wind_correct_bearing() and groundspeed_vector()
...
these are very useful for navigation libraries
2013-04-12 12:48:08 +10:00