Commit Graph

201 Commits

Author SHA1 Message Date
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
Randy Mackay
18e3db0011 Copter: define limit for baro vs inav alt disparity 2014-09-18 17:24:40 +09:00
Andre Kjellstrup
b4c6d6395e Copter: reset battery_fs after dis/rearming 2014-09-18 11:17:03 +09:00
Randy Mackay
a12d9109e0 Copter: remove thr check during init_arm_motors
This check is redundant now that we have a check within the arm_check()
function.
Removing this check does raise a slight danger that someone could raise
the throttle after arming but before the gyro and baro calibration has
completed but the delay has been greatly shortened from what it once was
so there is much less danger that someone could approach the vehicle
during the short arming delay.
2014-09-11 21:13:35 +09:00
Randy Mackay
0d7a999fc1 Copter: arming check that throttle is low 2014-09-09 23:02:18 +09:00
Randy Mackay
641c8317a5 Copter: pre-arm consistency check of gyros 2014-09-04 15:21:58 +09:00
Randy Mackay
05a37dd54d Copter: add short delay to arming to allow RC input
The short delay gives time for the RC inputs to be processed which
removes the chance of a false-positive on the "late frame" radio check.
A false positive could lead to an immediate disarm right after arming.
2014-09-04 15:11:57 +09:00
Randy Mackay
59404c25e3 Copter: pre-arm consistency check of accels 2014-09-03 13:51:44 +09:00
Randy Mackay
d7343d5dc7 Copter: check all gyros and accels in pre-arm check 2014-09-03 11:22:49 +09:00
Randy Mackay
eb51a8e5da Copter: pre-arm check of internal vs ext compass 2014-08-26 22:34:06 +09:00
Randy Mackay
2b0a7c59bc Copter: remote arming check reference to compass learning 2014-08-26 22:34:04 +09:00
Randy Mackay
7686660c73 Copter: use baro healthy() 2014-08-14 16:03:23 +09:00
Randy Mackay
2c0699c9ed Copter: auto-disarm in Drift, Sport, OF_Loiter 2014-07-31 22:58:43 +09:00
Randy Mackay
c9667131dd Copter: log flight mode after arming 2014-07-29 11:43:47 +09:00
Randy Mackay
71cbcacf50 Copter: fix arming tone to sound before arming
Also fixed bug in which vehicle could appear to be armed (according to
LEDs) but is not.  This could occur if pilot had raised the throttle
very high during the calibration that happens just before arming.
2014-07-25 13:09:07 +09:00
Randy Mackay
7f9cd20377 Copter: set UARTs non-blocking at end of initialisation
Previously we were setting to non-block after arming but this reduce the
chance of bumping into a NuttX USB driver issue that can cause the uart
to become unresponsive and also makes Copter consistent with Plane
2014-07-11 15:27:29 +09:00
Randy Mackay
65e5367619 Copter: rename hybrid to poshold 2014-07-11 14:09:01 +09:00
Randy Mackay
2c085c300d Copter: only save compass offsets when learning is on 2014-07-10 20:25:16 +09:00
Randy Mackay
b799020e25 Copter: pre-arm check uses compass configured method 2014-07-10 20:24:53 +09:00
Jonathan Challinger
cd08ec5a5f Copter: allow auto-disarm in autotune mode 2014-07-06 19:27:27 +09:00
Jonathan Challinger
ff1f54b390 Copter: allow disarm in autotune mode 2014-07-06 19:27:23 +09:00
Randy Mackay
f5f206b055 Copter: set inav alt to zero when arming 2014-06-06 18:42:45 +09:00
Randy Mackay
715e9c0474 Copter: reset mission when disarming 2014-05-15 16:21:32 +09:00
Randy Mackay
b4dcad725c Copter: remove unused servo_write function 2014-05-09 13:48:38 +09:00
Randy Mackay
ae9477600c Copter: add mavlink motor_test
Based on original work by Nils Hogberg
2014-04-29 11:31:45 +09:00
Randy Mackay
d36f137bf8 Copter: allow arming, disarming in Hybrid mode 2014-04-23 14:59:35 +09:00
Emile Castelnuovo
a9bd4e9da1 VRBRAIN: added ignore board voltage check for VRBRAIN boards. 2014-04-08 16:19:20 +10:00
Andrew Tridgell
640b64f5e4 Copter: convert to new GPS API 2014-04-01 06:38:24 +11:00
Kevin Hester
5fb3b031f1 Copter: disambiguate the various causes of "Bad GPS Pos"
I've seen a fair number of user questions where they are confused by
"Bad GPS Pos" on their GCS/not being allowed to arm.  This change splits
the remaining causes of this fault into separate messages.

Hopefully this increases the odds of the user self diagnosing...
2014-03-31 21:59:12 +09:00
Jonathan Challinger
608b8b0a2c Copter: integrate Notify arming failure when using yaw sticks 2014-03-31 20:34:29 +09:00