Commit Graph

160 Commits

Author SHA1 Message Date
Randy Mackay 62932f884f AP_AHRS: pre_arm_check may skip position checks 2021-01-26 10:46:49 +11:00
Randy Mackay 0cc9fd2b5d AP_AHRS_NavEKF: get_secondary_quat and position may return EKF3 value 2021-01-16 08:24:23 +09:00
Andrew Tridgell b73131cdbc AP_AHRS: review fixes 2021-01-05 21:13:12 +11:00
Andrew Tridgell 75ad1a7d31 AP_AHRS: send a text msg when active EKF changes 2021-01-05 21:13:12 +11:00
Andrew Tridgell 9dbd2d3eba AP_AHRS: expose active EKF type for logging 2021-01-05 21:13:12 +11:00
Andrew Tridgell e284c5694d AP_AHRS: added AHRS_EKF_TYPE=11 for external AHRS 2021-01-05 21:13:12 +11:00
Paul Riseborough 3a0105fcc3 AP_AHRS: Add accessor function for body frame airspeed vector 2020-12-11 15:21:41 +11:00
Peter Barker 0fca126d06 AP_AHRS: mark get_hagl as WARN_IF_UNUSED 2020-12-07 12:10:33 +11:00
Andrew Tridgell 0a80fce8b8 AP_AHRS: removed inhibitGps and inhibitGpsVertVel options
these were unused
2020-12-01 10:33:50 +11:00
Randy Mackay 4b542aa714 AP_AHRS: add get_vel_innovations_and_variances_for_source 2020-11-20 16:43:44 +09:00
Randy Mackay dc5d1d099b AP_AHRS: add set_posvelyaw_source_set 2020-11-20 16:43:44 +09:00
Andrew Tridgell 1bc82d3118 AP_AHRS: removed have_ekf_logging() 2020-11-10 16:15:45 +11:00
Andrew Tridgell 9b35bfba55 AP_AHRS: use enum class for takeoff/touchdown states
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Andrew Tridgell 31fbb59384 AP_AHRS: delay EKF start until logging ready
for replay to work reliably we need all the parameters output before
we init the EKF.

Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-11-10 16:15:45 +11:00
Randy Mackay 6a72805f07 AP_AHRS: get_variances does not return offset
the offset is not a variance and is not actually used by any callers of this function
2020-10-21 08:58:45 +09:00
Peter Barker 565b29a72c AP_AHRS: remove FLAG_NONE; it's not a flag, it's a bitmask value 2020-10-20 11:24:34 +11:00
Peter Barker 1ef92bb691 AP_AHRS: remove un-needed initialisations 2020-10-20 11:24:34 +11:00
Randy Mackay 1d97416a51 AP_AHRS: replace prearm_healthy with pre_arm_check
Also removes prearm_failure_reason
2020-10-07 11:53:07 +11:00
Harshit Kumar Sankhla b5b3298f0a AP_AHRS: get airspeed estimate from non-primary instances too
with multiple airspeed sensors and airspeed affinity in EKF3,
it is possible to have switched over to a lane not using the
primary airspeed sensor, so AHRS should know which airspeed
sensor to use, i.e, the one being used by the primary lane.
2020-08-27 20:20:51 +10:00
Randy Mackay d0a2198e00 AP_AHRS: expose EKF setTerrainHgtStable accessor 2020-06-24 21:16:50 +09:00
chobits c9e363d529 AP_AHRS: support VISION_SPEED_ESTIMATE 2020-06-01 17:51:24 +09:00
Randy Mackay b2ad1caf75 AP_AHRS: writeBodyFrameOdom accepts delay 2020-05-15 10:07:52 +09:00
Randy Mackay 762e82d49d AP_AHRS: writeExtNavData accepts delay 2020-05-15 10:07:52 +09:00
Andrew Tridgell 8868ac2d6f AP_AHRS: disable EKF2 by default on 1M boards 2020-05-10 15:09:54 +10:00
Randy Mackay 8caf7d5811 AP_AHRS: add set_alt_measurement_noise
These calls the EKF2 and EKF3's set_baro_alt_noise
2020-04-28 09:38:23 +09:00
Randy Mackay 585c806618 AP_AHRS: add get_primary_core_index 2020-04-24 18:18:05 +09:00
Paul Riseborough 22c2ea7cbf AP_AHRS: Add accessor function for EKF yaw reset request
AP_AHRS: Send yaw reset request to EKF2
2020-04-24 09:43:23 +10:00
Paul Riseborough 9cf75bf22e AP_AHRS: Enable EKF3 default airspeed to be set
AP_AHRS: Send default airspeed to EKF2
2020-04-24 09:43:23 +10:00
Randy Mackay 79afc70cdb AP_AHRS: remove writeExtNavData sensOffset argument
EKF pulls this directly from AP_VisualOdom
2020-04-14 10:28:03 +10:00
Andrew Tridgell 5c399fce41 AP_AHRS: auto-switch to EK3/EK2 if selected option disabled
if we have an EKF backend selected and that backend doesn't exist then
auto-switch to the other backend.

This fixes MatekF405-Wing which has EKF2 disabled and was falling back
to DCM
2020-04-14 09:15:43 +10:00
Randy Mackay b0b78e974b AP_AHRS: add get_quaternion 2020-04-09 19:41:08 +09:00
Randy Mackay 24bb4876a8 AP_AHRS: move is_ext_nav_used_for_yaw to parent 2020-04-09 19:41:08 +09:00
Peter Barker 583b25e6aa AP_AHRS: allow NavEKFs to be compiled out 2020-01-21 11:53:18 +11:00
Peter Barker 14fce28e1b AP_AHRS: move EKF objects in; this requires unconsting some methods 2020-01-21 11:53:18 +11:00
Peter Hall f6897632f8 AP_AHRS: move to airspeed_estimate with pointer 2020-01-14 22:34:37 -07:00
Peter Barker 9997cbf203 AP_AHRS: make ekf_type return from enum class
Eliminate default cases and rely on compiler to enforce all cases
handled in switch statement.  This will be important when we make EKF2
optional.
2020-01-14 11:58:11 +11:00
Peter Barker d3ede184cf AP_AHRS: force the use of EKF for Copter and Sub 2019-12-02 09:16:22 +11:00
Randy Mackay 4a1247b9f7 AP_AHRS: add get_innovations 2019-10-18 11:15:25 +09:00
hoangthien94 916de076ec AP_AHRS: add method to check if ext nav is used for yaw 2019-08-03 08:44:11 +09:00
Peter Barker 9732940220 AP_AHRS: navekf: add Log_Write access point 2019-07-06 19:05:51 +10:00
Andrew Tridgell 99316a191c AP_AHRS: added check_lane_switch() 2019-06-12 09:52:20 +10:00
Michael du Breuil 334b1622e1 AP_AHRS: Allow checking all EKF cores for health 2019-04-09 10:53:25 +10:00
Mark Whitehorn dd8bfb0ad4 AP_AHRS: attitudes_consistent: no euler angles 2019-04-04 11:26:46 +11:00
Randy Mackay ba02894734 AP_AHRS: attitude pre-arm check skips yaw if no compass
Also provides better feedback on the axis and angular difference
2019-03-07 09:34:39 +09:00
Randy Mackay b202270d1a AP_AHRS: minor format fixes 2019-02-22 13:00:07 +09:00
Randy Mackay f1a023c872 AP_AHRS: add attitudes_consistent pre-arm check 2019-02-22 13:00:07 +09:00
Tom Pittenger c45b96fee9 AP_AHRS: remove HAL_CPU_CLASS_150 check, 150 is already a minimum requirement 2019-02-17 13:00:06 -08:00
Peter Barker 306a40bb77 AP_AHRS: fix writeOptFlowMeas signature
const some of the vectors, stop taking references to scalars that aren't
being changed
2018-09-11 09:03:22 +10:00
Peter Barker 3cbb88ae20 AP_AHRS: split home-set and home-locked state 2018-05-29 14:38:45 +10:00
Pierre Kancir fdfa08c586 AP_AHRS: fix include order due to cyclic include 2018-04-17 17:21:35 +09:00