Randy Mackay
52f7186cbf
Copter: pre-arm check primary compass health
...
Previously we would check the 1st compass which might not necessarily be
the primary compass
2015-04-10 11:08:18 +09:00
Randy Mackay
6834b5943e
Copter: pre-arm alt disparity check only if using baro
...
We should probably consolidate the baro pre-arm and arming checks into a
single check_baro function but the difference in the error message stops
me from immediately doing that
2015-04-10 11:08:02 +09:00
Paul Riseborough
1d7cb25c17
Copter : Update pre-arm and arm checks using EKF health status
...
Bypass alt disparity check when doing ground relative navigation using range finder height
Add check of EKF health status to indicate when EKF is waiting to complete checks
2015-04-10 11:07:50 +09:00
Randy Mackay
fea7632eac
Copter: save EKF learned compass to primary compass
2015-04-10 11:07:18 +09:00
Paul Riseborough
2406e26ab4
Copter : Save EKF learned compass offsets on disarm
...
Requires compass learning to be enabled in the compass parameters
Copter: fix compass offsets patch
2015-04-10 11:07:13 +09:00
Randy Mackay
e5ddd276fd
Copter: remove baro init on arming
2015-04-09 10:56:59 +09:00
Jonathan Challinger
ffc445098b
Copter: remove velocity pre-arm check
2015-03-30 16:44:50 -07:00
Robert Lefebvre
fd0cb0beed
Copter: Create check_duplicate_auxsw() method to streamline pre-arm check code
2015-03-17 21:18:48 +09:00
Robert Lefebvre
a5af151a91
Copter: Initial expansion of Aux Switch to Ch7-12
2015-03-17 21:18:41 +09:00
Randy Mackay
fbfc94cf69
Copter: remove GPS glitch and failsafe
...
The EKF failsafe now captures all failures that could lead to a bad
position including GPS glitches and a bad compass meaning we do not need
this protection in the main flight code.
2015-03-13 16:40:46 +09:00
Randy Mackay
6f6847c025
Copter: use only InertialNav_EKF
...
remove calls to unsupported functions including ignore_next_error,
set_altitude, etc.
2015-03-13 16:40:37 +09:00
Leonard Hall
d5bbe6de03
Copter: remove TRIM_THROTTLE
...
throttle_trim is replaced by throttle_average which is initialised to
the throttle_mid parameter value at startup
2015-03-06 14:02:19 +09:00
Randy Mackay
c711179ffe
Copter: set_mid_throttle renamed to set_hover_throttle
2015-03-03 15:48:56 +09:00
Randy Mackay
fbe87afb9c
Copter: pre-arm check of EKF origin vs home
...
EKF origin must be within 50km of home or numerical errors get too large
2015-02-12 15:01:00 +09:00
Randy Mackay
e7579198c9
Copter: when arming set home to current loc only if not locked
2015-02-12 15:00:58 +09:00
Randy Mackay
a4fd36a775
Copter: fix compile error when fence disabled
...
Fix provided by iyia12co
2015-02-12 12:03:54 +09:00
Jonathan Challinger
0cc83b1826
Copter: use hal.util soft_armed state
2015-02-11 20:25:11 +11:00
Randy Mackay
4ff75f0371
Copter: perf info ignores slow loop due to arming
2015-02-09 23:07:18 +09:00
Randy Mackay
8b5f1575ad
Copter: remove pre-arm check of RC3_TRIM
...
RC3_TRIM parameter is not used so we can remove this check
2015-02-06 17:55:28 +09:00
Robert Lefebvre
0b1f217420
Copter: Add PreArm check for radio trims.
2015-02-05 11:17:58 +09:00
Randy Mackay
f00861d2f1
Copter: using arming_failed as event
2015-02-03 06:14:56 +09:00
Randy Mackay
9e813948fa
Copter: protect against multiple arming messages
...
Protect against the GCS sending multiple arming messages close together
which disrupts the gyro calibration
2015-02-02 22:31:20 +09:00
Randy Mackay
32cb901ce3
Copter: allow arming at mid throttle in AltHold, Loiter
2015-02-02 22:31:18 +09:00
Randy Mackay
e7f20c04c3
Copter: init_arm_motors calls pre-arm checks
...
This reduces a small amount of duplicated code in the pilot initiated
arming and GCS initiated arming functions
2015-02-02 22:31:14 +09:00
Randy Mackay
f4c392c64d
Copter: pre_arm_checks returns success or failure
...
This makes the pre-arm check function consist with the other arming
check functions
2015-02-02 22:31:11 +09:00
Randy Mackay
64af4ff923
Copter: rename set_servos_4 to motors_output
2015-02-02 22:31:08 +09:00
Randy Mackay
8754ce9eed
Copter: move 80% thr limit to MotorsTri
2015-02-02 22:31:04 +09:00
Randy Mackay
43ba94e99a
Copter: rename manual_flight_mode to mode_has_manual_throttle
2015-02-02 22:31:01 +09:00
Randy Mackay
199dc3454d
Copter: replace GPS_ok with position_ok
...
position_ok uses the EKF's filter status if the EKF is being used
otherwise it falls back to the GPS based checks used by inertial nav
2015-01-22 14:39:45 +09:00
Robert Lefebvre
4b86a4aeec
Arducopter: Change mode logging to use common-vehicle DataFlash library.
2015-01-21 14:37:20 +09:00
Andrew Tridgell
557f4df77e
Copter: use barometer.all_healthy() for health check in SYS_STATUS and arming
2015-01-09 11:51:51 +11:00
Randy Mackay
2bc1b7e4d6
Copter: skip pre-arm checks when already armed
2014-12-26 22:01:43 +09:00
Randy Mackay
2ea9b8a5a8
Copter: set pre_arm_gps_check flag
2014-12-26 12:32:36 +09:00
Jonathan Challinger
e37337b744
Copter: remove gyro cal prearm check
2014-11-07 14:02:26 +09:00
squilter
ad3bce105c
Copter: remove abbreviations from GCS messages
2014-11-05 20:04:52 +09:00
Randy Mackay
beb54b087b
Copter: re-enable CPU failsafe if arming fails
2014-10-29 16:00:32 +09:00
Randy Mackay
cce876c2f9
Copter: fail to arm if gyro cal fails
2014-10-29 15:36:29 +09:00
Jonathan Challinger
25a2fa67b6
Copter: don't stop logging on disarm when LOG_WHEN_DISARMED is set
2014-10-28 15:19:01 +09:00
Jonathan Challinger
ef12ea4d3b
Copter: fix indentation mistake in motors.pde
2014-10-20 10:43:53 +09:00
Jonathan Challinger
dd38ad6bbf
Copter: Start logging on arming attempt, rather than on successful arm
2014-10-11 17:32:27 +09:00
Randy Mackay
9d4107f1fc
Copter: allow arming in GUIDED only from GCS
...
Also changed mode_allows_arming function to accept arming_from_gcs param
Also remove AUTOTUNE from arming list
2014-10-11 16:05:32 +09:00
Jonathan Challinger
2b0cffda29
Copter: move all arm check logic into arm_checks
2014-10-11 15:34:12 +09:00
Jonathan Challinger
3e1bffe9ab
Copter: auto-disarm if land complete regardless of mode
2014-10-11 15:32:29 +09:00
Jonathan Challinger
d0d26b6878
Copter: use ap.throttle_zero instead of rc_3.control_in in auto_disarm_check
2014-10-11 15:30:57 +09:00
Randy Mackay
d7cd745cf4
Copter: auto-trim start delays auto-disarm by 15sec
...
Fixes issue in which user only had 5 seconds after starting auto-trim to
raise the throttle before the auto-disarm would kick-in.
2014-10-09 22:43:44 +09:00
Randy Mackay
128058362b
Copter: pre-arm check that gyro cal succeeded
2014-10-09 10:00:09 +09:00
Randy Mackay
68a9286086
Copter: use define for pre-arm compass offset check
2014-10-03 13:59:31 +09:00
Randy Mackay
d4cfb432ca
Copter: use disparity threshold define for pre-arm checks
...
There are two duplicate checks, one in the pre-arm checks (i.e. checks
run every 15 seconds or so before the vehicle is armed) and one in the
arming checks (run immediately before arming). The definition in the
pre-arm checks was still using the old hardcoded value.
2014-09-23 19:33:04 +09:00
Randy Mackay
b9977a1115
Copter: add land_complete_maybe flag
2014-09-19 16:43:15 +09:00
Randy Mackay
b552479e31
Copter: typo fix for baro vs inav alt disparity definition
2014-09-18 17:32:03 +09:00