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
Randy Mackay
24044dc0c4
AHRS: add support for GPS fix type 2D
2013-03-27 11:41:43 +09:00
Randy Mackay
3321db8dde
AHRS: limit trim to 10 degrees
2013-02-19 18:50:57 +09:00
James Bielman
5631f865b2
Update floating point calculations to use floats instead of doubles.
...
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
2013-01-16 13:52:01 +11:00
Andrew Tridgell
f644a356c9
AP_AHRS: document more rotation combinations
2013-01-13 17:32:48 +11:00
Andrew Tridgell
848fc3e32d
AP_AHRS: added AHRS_ORIENTATION parameter
2013-01-13 17:32:48 +11:00
rmackay9
9e5861ccaf
AP_AHRS: small fix to parameter comments
2013-01-02 16:08:38 +09:00
rmackay9
77331f6538
AP_AHRS: another attempt at updating the TRIM parameter descriptions
2013-01-02 15:47:59 +09:00
rmackay9
e6c10f4f0b
AP_ARHS: add description to AHRS_TRIM parameters
2013-01-02 15:44:42 +09:00
rmackay9
bd0e018ca0
ArduCopter: restore auto-trim method but now use AHRS.add_trim
2013-01-02 09:20:08 +11:00
Andrew Tridgell
e282554035
AHRS: removed some debug code
2012-12-20 14:53:23 +11:00
Andrew Tridgell
5840ded767
AHRS: removed constrain() defines
2012-12-20 14:51:34 +11:00
Pat Hickey
9bf69d4e0d
AP_AHRS: port to AP_HAL
2012-12-20 14:51:29 +11:00
rmackay9
24317e721b
AC_PID, AP_AHRS: added descriptions to some parameters
2012-12-10 22:28:39 +09:00
Andrew Tridgell
1dad9e4e94
AHRS: improved some more doc strings
2012-11-27 15:56:53 +11:00
Andrew Tridgell
eb1d5c2c68
AHRS: improved docs for AHRS_GPS_USE
...
some people are setting this to zero to prevent jitter, which results
in their plane flying off into the distance and never coming back
2012-11-27 15:41:52 +11:00
Andrew Tridgell
5a214acca3
AHRS: changed the docs for AHRS_YAW_P and AHRS_RP_P
...
a user had set AHRS_YAW_P to zero. Make it clear that zero is not a
good value. MichaelO will change MP to give a warning for a value
below 0.1
2012-11-19 22:50:05 +11:00
rmackay9
83ae8e47be
AP_AHRS: replace IMU with INS and add roll and pitch trim
2012-11-07 19:20:32 +09:00
Andrew Tridgell
458a42654b
DCM: disable use of baro for vertical accel by default
...
this has caused problems with too many users
2012-09-20 17:34:32 +10:00
Andrew Tridgell
fba1692d69
AHRS: added AHRS_BARO_USE parameter
...
allow disabling of the use of the barometer for vertical acceleration
compensation
2012-09-12 14:42:04 +10:00
Andrew Tridgell
de28cc8b28
AHRS: added AHRS_WIND_MAX option
...
this allows APM to cope better with airspeed sensor failure, but
ensuring airspeed stays within AHRS_WIND_MAX of ground speed
2012-09-08 11:37:07 +10:00
Andrew Tridgell
2be785899b
AHRS: added airspeed_estimate() function
...
this allows the APM code to use an airspeed estimate for navigation
2012-08-25 17:49:26 +10:00
Andrew Tridgell
134cd51d17
AHRS: moved var_info[] into top level AP_AHRS class
2012-08-21 15:58:09 +10:00