Andrew Tridgell
5a36b9955e
Copter: fix for HAL_SITL rename
2015-05-05 09:45:57 +10:00
Robert Lefebvre
05f18bb014
Copter: Rename output_min() to enable_motor_output()
2015-05-01 14:30:44 +09:00
Robert Lefebvre
4e51ce6d75
Copter: rename "estop" to "emergency stop".
...
No functional change
2015-05-01 14:30:41 +09:00
Robert Lefebvre
9d9f20a6cb
Copter: Add Motor Interlock/E-Stop Conflict Prearm Check
2015-05-01 14:30:40 +09:00
Robert Lefebvre
16cf9471ae
Copter: Remove ap.motors_interlock, use only flag in AP_Motors
2015-05-01 14:30:31 +09:00
Robert Lefebvre
b82113acc7
Copter: Modify auto-disarm process for throttle interlock
2015-05-01 14:30:27 +09:00
Robert Lefebvre
7349827eb1
Copter: Add Aux Switch E-Stop Function
2015-05-01 14:30:26 +09:00
Robert Lefebvre
4a0a4de687
Copter: update motors.throttle_interlock every time motors_output is run
2015-05-01 14:30:23 +09:00
Robert Lefebvre
7d745587a4
Copter: Add using_interlock flag, employ it in arming process
2015-05-01 14:30:22 +09:00
Robert Lefebvre
e4c5915330
Copter: initial creation of motor_interlock
2015-05-01 14:30:21 +09:00
Jonathan Challinger
73d961cebc
Copter: mavlink initiated takeoff in alt-hold modes
...
adds PILOT_TKOFF_ALT for target altitude above home in cm for pilot initiated takeoff
2015-05-01 12:56:18 +09:00
Jonathan Challinger
e5b6cf9966
Copter: use circular limit on tilt angle for arm check
2015-04-29 12:02:43 +09:00
Randy Mackay
276b2dcf5e
Copter: move lost copter check to separate function
...
Also run from scheduler instead of from arm/disarm stick checks
Run at 10hz instead of 1hz
soundalarm_counter to uint8
Disable if equivalent aux switch is setup
Remove SEVERITY_LOW message because the GCSs never print these anyway
2015-04-29 00:05:03 +09:00
svefro
5bee93cba3
Copter: Lost copter alarm through sticks
2015-04-29 00:05:01 +09:00
Andrew Tridgell
cb2427ef9e
Copter: removed special cases for DCM gain changes on arm/disarm
...
copter no longer uses DCM, so it doesn't need these special cases
2015-04-28 14:07:39 +10:00
Randy Mackay
1ff443d667
Copter: add rangefinder pre-arm check
2015-04-24 10:57:08 +09:00
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