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
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
2014-03-24 19:52:08 +11:00
Andrew Tridgell
a45d77f893
Copter: set the ahrs.set_armed() flag
2014-02-19 10:53:44 +11:00
Randy Mackay
aab9b30bf6
Copter: replace APM_PI with AC_P
...
Saves about 90bytes of RAM
2014-02-15 06:09:08 +11:00
Andrew Tridgell
24f2ac20de
Copter: removed HIL_MODE_ATTITUDE
...
this really can't work any more, as AHRS can't support it
2014-02-15 05:29:46 +11:00
Randy Mackay
006cf58b2d
Copter: fix merge error for g.angle_max
2014-02-15 05:27:51 +11:00
Randy Mackay
38d5148b99
Copter: remove reset_I_all
...
Each controller should reset the I terms as needed
2014-02-15 05:27:47 +11:00
Randy Mackay
aec67cd3df
Copter: integrate control_autotune
2014-02-15 05:27:44 +11:00
Randy Mackay
bca309eb1e
Copter: replace takeoff_complete with landed_complete
2014-02-15 05:27:43 +11:00
Randy Mackay
7b9a48107e
Copter: move angle_max parameter to AP_Vehicle
2014-02-15 05:27:32 +11:00
Andrew Tridgell
0a3476bbf1
Copter: change to new board_voltage() API
2014-02-14 21:50:59 +11:00
Dneault
4b3699f985
Copter: coax allows ch5 and higher for do_set_servo cmd
2014-02-07 12:36:22 +09:00
Dneault
f48e106271
Copter: add coax heli support
...
Motors should be attached to RCOutputs 1 and 2, Flaps should be connected
to RC outputs 3 and 4
2014-02-07 12:36:04 +09:00
Randy Mackay
0f957bdc5a
Copter: lean angle arming check
2014-01-17 17:31:28 +09:00
Randy Mackay
a7f03619f2
Copter: add inav vs baro arming check
...
In-flight Barometer sanity checking will be a more complete solution but
until then this should catch some bad pre-flight barometer behaviour
2014-01-17 17:21:42 +09:00
Randy Mackay
8a29d63d89
Copter: faster baro calibration when arming
...
using update_calibration() instead of the full calibrate() cuts
1.5seconds of the arming time
2014-01-15 23:28:24 +09:00
Randy Mackay
6d55895d30
Copter: simplify do-set-servo mission command
...
This potentially changes the servo number that must be supplied if using
an APM1 but it now shares the same logic as arduplane and also adds
protection that the servo is not attached to the motor.
removed debug message from previous commit.
2014-01-15 14:36:50 +09:00
Randy Mackay
67c2bc7d0b
Copter: add support for MAV_CMD_DO_SET_SERVO
2014-01-15 14:03:04 +09:00
Randy Mackay
84881470b1
Copter: suspend logging while disarmed
2014-01-07 22:43:47 +09:00
Kevin Hester
2044300057
Copter: Split out prearm failures of low HDOP separately from !gps lock
...
(on the iris list there was some confusion on why the copter was blinking
yellow but yet they had gps lock)
2013-12-26 10:10:06 +09:00
Andrew Tridgell
d265e54043
Copter: changes for compass healthy API
2013-12-09 17:47:22 +11:00
Andrew Tridgell
ffdcb715c3
Copter: updates for compass API change
2013-12-09 17:34:06 +11:00
Randy Mackay
59cea4b88c
Copter: remove CopterLED from main code
2013-11-30 18:20:55 +09:00
Andrew Tridgell
a49710f20e
Copter: added uartD support
...
this also brings GCS_Mavlink.pde closer to the plane implementation
2013-11-26 13:05:32 +11:00
Randy Mackay
ed9f369492
Copter: shorten g.arming_check_enabled variable
...
g.arming_check_enabled shortened to g.arming_check
2013-11-25 17:23:39 +09:00
Randy Mackay
8eb46ced53
Copter: revert pre-arm check for slow GPS
2013-11-22 09:53:21 +09:00
Randy Mackay
0bc505514a
Copter: pre-arm check that INAV has no errors
2013-11-21 17:02:07 +09:00
Randy Mackay
7a2f49f7da
Copter: arming check for gps if GPS FS set to LAND_EVEN_STABILIZE
...
Setting the GPS Failsafe to LAND_EVEN_STABILIZE means the copter will
LAND if it loses GPS even if it's in a manual flight mode like
Stabilize. With this setting it makes sense to check the GPS quality
before arming even if we're in stabilize mode.
2013-11-18 23:59:26 +09:00
Randy Mackay
d003334b75
Copter: pre-arm check for ACRO_BAL_ROLL and PITCH
2013-11-18 16:38:05 +09:00
Randy Mackay
9ee308efd5
Copter: auto disarm in Loiter, AltHold after 15sec
2013-11-18 16:13:15 +09:00
Randy Mackay
46118b59d7
TradHeli: integrate motor lib changes
2013-11-15 22:57:43 +09:00
Randy Mackay
f0f6e85b39
Copter: ARMING_CHECK made into bitmask
...
Allows arming checks to be individually enabled or disabled for baro,
compass, GPS, INS, parameters, RC and board voltage
2013-11-15 17:13:56 +09:00
Randy Mackay
fe822ba0b6
Copter: pre-arm check of INS health
2013-11-15 17:13:53 +09:00
Jason Short
371dc8c616
Copter: Drift Mode
...
Changes Toy mode declarations to Drift mode.
Requires GPS, Mode 2 transmitter
Drift mode mixes Roll, Pitch and Yaw into a single stick on mode two transmitters.
2013-11-14 14:43:15 +09:00
Randy Mackay
0778454434
Copter: disarm routine shortcut
...
Extra check so we only run the disarm check when we are actually armed.
The ground stations sometimes send many disarm messages which can be
ignored
2013-11-14 13:14:51 +09:00
Jason Short
520a535c21
Copter: TOY mode updates
2013-11-02 21:34:48 +09:00
Andrew Tridgell
f6f6caafc8
Copter: int gyros on arm, not on first boot
...
this makes first boot much faster
2013-11-02 21:41:11 +11:00
Randy Mackay
977983904f
Copter: arming check that throttle is above failsafe
2013-11-02 14:06:19 +09:00
Randy Mackay
94f301181e
Copter: recalc distance to home during arming
...
fixes an rare edge case in which the fence could trigger immediately
after arming
2013-11-01 23:54:32 +09:00
Randy Mackay
6b9b5c5617
Copter: pre-arm check speed is less than 50cm/s
2013-10-20 21:56:00 +09:00
Randy Mackay
0cbedded0d
Copter: autotune to use 2pos switch only
...
method of recording state also changed
other code clean-up
pair programmed withe Leonard
2013-10-18 13:57:50 +09:00
Randy Mackay
bf74a64fec
Copter: add GPS glitch to arming checks
2013-10-13 14:04:54 +09:00
Randy Mackay
f56617710f
Copter: pre-arm RC checks ch3's min and max
2013-10-07 11:17:16 +09:00
Randy Mackay
efc02161c4
Copter: add safe switch arming check
2013-10-05 22:23:53 +09:00
Randy Mackay
ba92c4891a
Copter: make AutoTune a compile-time option
2013-10-04 15:50:50 +09:00
Randy Mackay
31cea0140d
Copter: Leonard's AutoTuning for Roll and Pitch
2013-10-04 15:50:47 +09:00
Randy Mackay
a53d28e018
Copter: remove support for dmp ahrs
2013-09-27 10:42:49 +09:00
Andrew Tridgell
d9fe0552f0
Copter: allow Vcc checks on Pixhawk
2013-09-12 13:43:06 +10:00
Randy Mackay
a68966e077
Copter: integrate sprayer pump test
2013-09-11 17:05:25 +09:00
Randy Mackay
1d55fa6818
Copter: add arm check of GPS hdop when in Loiter
2013-09-09 14:03:40 +09:00
Randy Mackay
52ef77393c
Copter: integrate Toshiba_LED_PX4
2013-08-30 13:01:35 +10:00
Randy Mackay
e985253f1a
Copter: integrate notify
2013-08-30 13:01:35 +10:00
Randy Mackay
fe56ac3839
Copter: only allow auto_trim in STABILIZE
2013-08-15 21:11:23 +09:00
Randy Mackay
34e874282e
Copter: only check hdop when circular fence enabled
2013-08-15 16:03:57 +09:00
Randy Mackay
d000967a76
Copter: pre-arm check for gps hdop < 2
2013-08-15 13:06:36 +09:00
Randy Mackay
6969ab573d
Copter: configurable max lean angle
...
ANGLE_MAX parameter allows limiting the roll and pitch angles during
manual and auto flight modes to anywhere from 10 to 80 degrees
2013-08-11 12:53:22 +09:00