Andrew Tridgell
b61f7fa2f6
AP_AHRS: enable EKF by default on plane
...
now we have arming checks enabled by default I think this is the best
choice
2015-05-23 17:17:44 +10:00
Andrew Tridgell
7a76f72bf5
AP_AHRS: added uptime_ms() interface
2015-05-20 15:22:14 +10:00
Andrew Tridgell
5514a9f690
AP_NavEKF: base EKF decisions on vehicle class
...
using the vehicle class rather than the build macros allows this to
work correctly in replay
2015-05-19 15:21:22 +10:00
Andrew Tridgell
92daa15ccc
AP_AHRS: on plane and rover make AHRS unhealthy when EKF not initialised
...
planes and rovers need full absolute position from the EKF if the EKF
is going to be used. We don't want users to arm without full
capabilities
2015-05-19 15:21:21 +10:00
Andrew Tridgell
29f0561ce4
AP_AHRS: reject EKF for plane when we have GPS and aren't fusing
...
plane users would prefer to use GPS in this case
2015-05-17 21:24:57 +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
Andrew Tridgell
3529e02675
AP_AHRS: if we have 3 gyros then only use first two
...
the 3rd gyro on a PH2 has a lot more noise as it is not vibration
isolated
2015-05-09 21:00:49 +10:00
Randy Mackay
3390d9932e
AP_AHRS: fix example sketch
2015-05-09 12:23:05 +09:00
Peter Barker
463270e0ee
AP_AHRS: avoid FPE when we don't have a compass reading
2015-05-05 15:02:35 +10:00
Andrew Tridgell
4d4a607b80
AP_AHRS: revert AP_Math class change
2015-05-05 13:27:05 +10:00
Tom Pittenger
20f47417d5
AP_AHRS: compiler warnings: apply is_zero(float) or is_equal(float) and float to doubles
2015-05-05 13:26:55 +10:00
Andrew Tridgell
e597575747
AP_AHRS: fix for HAL_SITL rename
2015-05-05 09:45:54 +10:00
Andrew Tridgell
6bfca648b9
AP_AHRS: raise DCM P gains when disarmed for first 20 seconds
2015-04-28 14:07:39 +10:00
Tom Pittenger
e28c555889
AHRS_DCM: fix compile warnings re float constants
...
Also fix example sketch
2015-04-24 12:26:08 +09:00
Paul Riseborough
7f1749dc1c
AP_AHRS: Allow EKF to pull data from range finder object
2015-04-24 10:56:58 +09:00
Paul Riseborough
405862bd8f
AP_AHRS: Reduce time delay for EKF initialisation
2015-04-23 20:35:52 +09:00
Paul Riseborough
5184bca87f
AP_AHRS: Prevent DCM reporting good tilt error when inverted
2015-04-23 20:35:39 +09:00
Paul Riseborough
ea8217bd3a
AP_AHRS: Reduce time constant on filtering of DCM error reporting
...
Reduces time constant from 2 to 1 second to make data more useful for pre-flight alignment checks by the EKF
2015-04-23 20:35:35 +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
c6f71ea2e0
AHRS: make get_error_rp and get_error_yaw const
2015-04-21 22:42:17 +09:00
Andrew Tridgell
a0969905ce
AP_AHRS: make get_error_rp() and get_error_yaw() const
...
this makes them usable by multiple consumers, and allows use by EKF
2015-04-21 21:42:17 +10:00
Andrew Tridgell
d7249cc1e6
AP_AHRS: only use EKF for plane and rover if all data available
...
we need position and velocity to be working for plane and rover
2015-04-14 09:57:45 +10:00
Paul Riseborough
ff9917d338
AP_AHRS: Fix bug preventing EKF from initialising
2015-04-10 11:07:42 +09:00
Jonathan Challinger
dc5bdd5ad8
AP_AHRS: use filtered INS output to compute _accel_ef_blended
2015-04-09 20:19:56 +09:00
Paul Riseborough
d44cf14178
AP_AHRS : Publish EKF learned compass offsets
2015-04-03 15:24:47 -07:00
Andrew Tridgell
8ba043e593
AP_AHRS: fixed EKF startup bug
...
This fixes the EKF for when GPS lock takes more than 10 seconds
fixes issue #2010
2015-03-28 10:52:22 -07:00
Randy Mackay
98efcd5f03
AHRS: always use EKF for copter
2015-03-19 15:15:51 +09:00
Randy Mackay
7f25938834
AHRS: fix example sketch
2015-03-16 20:29:19 +09:00
Jonathan Challinger
f92c711d14
AP_AHRS: define AP_AHRS_TYPE to be the type of AHRS in use
2015-03-16 09:14:03 +11:00
Andrew Tridgell
585a105128
AP_AHRS: use compass->last_update_usec()
2015-03-14 12:31:50 +11:00
Andrew Tridgell
b488d6de00
AP_AHRS: fix for new compass API
2015-03-13 18:46:17 +11:00
Andrew Tridgell
031c81beee
AP_AHRS: removed call to 1D accel cal
2015-03-12 12:50:29 +11:00
Andrew Tridgell
6781a8d329
AP_AHRS: fixed get_position for EKF to use correct relative altitude
...
we need to use the EKF relative height plus the current AHRS home
2015-02-21 10:12:53 +11:00
Jonathan Challinger
180c85817d
AP_AHRS: remove armed state, use hal.util soft_armed state
2015-02-11 20:25:11 +11:00
mirkix
49d81a9c99
AP_AHRS: fix apm1 oilpan support
2015-02-11 18:22:39 +11:00
Randy Mackay
b66a1135d9
AHRS: fix example sketch compile error
2015-02-03 15:57:11 +09:00
Andrew Tridgell
ee9c778834
AP_AHRS: added a get_NavEKF_const() function
...
needed for AP_Mount_MAVLink
Pair-Programmed-With: Paul Riseborough <p_riseborough@live.com.au>
2015-02-03 09:49:16 +11:00
Andrew Tridgell
68f64fa11c
AP_AHRS: make the healthy() method const
2015-02-01 14:13:52 +11:00
Randy Mackay
d8664d15d6
AHRS: fix example sketch
2015-01-28 17:15:35 +09:00
Andrew Tridgell
ed0a56cc3c
AP_AHRS: cope with the changed semantics of airspeed.use()
2015-01-20 11:27:58 +11:00
Andrew Tridgell
d2c827aa4b
AP_AHRS: updates for new AP_Baro API
2015-01-09 11:50:56 +11:00
Andrew Tridgell
b499cd1b59
AP_AHRS: fixed examples build
...
using a relative include works as the object is just passed through,
not used, in this header
2015-01-05 07:04:27 +11:00
Andrew Tridgell
70c2aeca42
AP_AHRS: make optflow available via AHRS
...
same pattern as compass and airspeed sensor
2015-01-03 14:16:34 +11:00
priseborough
5b8265ad6f
AP_AHRS: Expand EKF speed limit public method to handle control limits
2014-12-06 18:16:50 +11:00
priseborough
83775554ea
AP_AHRS: Publish EKF ground speed limit
2014-12-06 18:16:50 +11:00
priseborough
5532750a99
AP_AHRS: Add public method to inhibit GPS useage when using EKF
...
This provides the calling vehicle software the abiity to request the EKF to not use GPS.
An integer is returned that indicates the type of operation available:
0 = request rejected (request will only be accepted if the EKF is in static mode, eg pre-armed)
1 = request accepted, attitude, vertical velocity and position estimates available
2 = request accepted, attitude, height rate, height, horizontal velocity and relative position estimates available
2014-12-06 18:16:49 +11:00
priseborough
44e1695d5a
AP_AHRS : Enable EKF start without GPS
2014-12-06 18:16:46 +11:00
priseborough
a4984a1e76
AP_AHRS : Add range finder health status to EKF optical flow data
2014-12-06 18:16:44 +11:00
priseborough
12b012a00e
AP_AHRS : temporary mods to test use of flow sensor internal gyro data
2014-12-06 18:16:44 +11:00