Jonathan Challinger
ef12ea4d3b
Copter: fix indentation mistake in motors.pde
10 years ago
Jonathan Challinger
dd38ad6bbf
Copter: Start logging on arming attempt, rather than on successful arm
10 years ago
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
10 years ago
Jonathan Challinger
2b0cffda29
Copter: move all arm check logic into arm_checks
10 years ago
Jonathan Challinger
3e1bffe9ab
Copter: auto-disarm if land complete regardless of mode
10 years ago
Jonathan Challinger
d0d26b6878
Copter: use ap.throttle_zero instead of rc_3.control_in in auto_disarm_check
10 years ago
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.
10 years ago
Randy Mackay
128058362b
Copter: pre-arm check that gyro cal succeeded
10 years ago
Randy Mackay
68a9286086
Copter: use define for pre-arm compass offset check
11 years ago
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.
11 years ago
Randy Mackay
b9977a1115
Copter: add land_complete_maybe flag
11 years ago
Randy Mackay
b552479e31
Copter: typo fix for baro vs inav alt disparity definition
11 years ago
Randy Mackay
18e3db0011
Copter: define limit for baro vs inav alt disparity
11 years ago
Andre Kjellstrup
b4c6d6395e
Copter: reset battery_fs after dis/rearming
11 years ago
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.
11 years ago
Randy Mackay
0d7a999fc1
Copter: arming check that throttle is low
11 years ago
Randy Mackay
641c8317a5
Copter: pre-arm consistency check of gyros
11 years ago
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.
11 years ago
Randy Mackay
59404c25e3
Copter: pre-arm consistency check of accels
11 years ago
Randy Mackay
d7343d5dc7
Copter: check all gyros and accels in pre-arm check
11 years ago
Randy Mackay
eb51a8e5da
Copter: pre-arm check of internal vs ext compass
11 years ago
Randy Mackay
2b0a7c59bc
Copter: remote arming check reference to compass learning
11 years ago
Randy Mackay
7686660c73
Copter: use baro healthy()
11 years ago
Randy Mackay
2c0699c9ed
Copter: auto-disarm in Drift, Sport, OF_Loiter
11 years ago
Randy Mackay
c9667131dd
Copter: log flight mode after arming
11 years ago
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.
11 years ago
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
11 years ago
Randy Mackay
65e5367619
Copter: rename hybrid to poshold
11 years ago
Randy Mackay
2c085c300d
Copter: only save compass offsets when learning is on
11 years ago
Randy Mackay
b799020e25
Copter: pre-arm check uses compass configured method
11 years ago
Jonathan Challinger
cd08ec5a5f
Copter: allow auto-disarm in autotune mode
11 years ago
Jonathan Challinger
ff1f54b390
Copter: allow disarm in autotune mode
11 years ago
Randy Mackay
f5f206b055
Copter: set inav alt to zero when arming
11 years ago
Randy Mackay
715e9c0474
Copter: reset mission when disarming
11 years ago
Randy Mackay
b4dcad725c
Copter: remove unused servo_write function
11 years ago
Randy Mackay
ae9477600c
Copter: add mavlink motor_test
...
Based on original work by Nils Hogberg
11 years ago
Randy Mackay
d36f137bf8
Copter: allow arming, disarming in Hybrid mode
11 years ago
Emile Castelnuovo
a9bd4e9da1
VRBRAIN: added ignore board voltage check for VRBRAIN boards.
11 years ago
Andrew Tridgell
640b64f5e4
Copter: convert to new GPS API
11 years ago
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...
11 years ago
Jonathan Challinger
608b8b0a2c
Copter: integrate Notify arming failure when using yaw sticks
11 years ago
Andrew Tridgell
3362e42478
Copter: consider health of primary compass in SYS_STATUS, pre-arm and compassmot
...
this should prevent users from taking off with only secondary compass
11 years ago
Andrew Tridgell
a45d77f893
Copter: set the ahrs.set_armed() flag
11 years ago
Randy Mackay
aab9b30bf6
Copter: replace APM_PI with AC_P
...
Saves about 90bytes of RAM
11 years ago
Andrew Tridgell
24f2ac20de
Copter: removed HIL_MODE_ATTITUDE
...
this really can't work any more, as AHRS can't support it
11 years ago
Randy Mackay
006cf58b2d
Copter: fix merge error for g.angle_max
11 years ago
Randy Mackay
38d5148b99
Copter: remove reset_I_all
...
Each controller should reset the I terms as needed
11 years ago
Randy Mackay
aec67cd3df
Copter: integrate control_autotune
11 years ago
Randy Mackay
bca309eb1e
Copter: replace takeoff_complete with landed_complete
11 years ago
Randy Mackay
7b9a48107e
Copter: move angle_max parameter to AP_Vehicle
11 years ago