Dr Gareth Owen
18e566ccc5
failsafe gps lost bug fix
2013-06-02 11:41:59 +09:00
Dr Gareth Owen
f175111243
added GPS check before mode change. New mode_requires_gps() function.
2013-05-30 20:33:15 +09:00
Randy Mackay
bab9fa25e5
Copter: add GCS failsafe
2013-04-29 21:30:22 +09:00
Randy Mackay
629d23b7e2
Copter: remove WP_SPEED and WP_RADIUS parameters
...
AC_WPNav library has equivalent params with very similar names
2013-04-14 13:27:37 +09:00
Randy Mackay
7cf2255822
Copter LEDs: replace bitRead with bitmask
...
Consolidate all checks of led_mode to leds.pde
Add #defines for bitmasks comparisons
Some formatting changes
2013-04-01 13:10:12 +09:00
Randy Mackay
150046f2b8
Copter: GPS Failsafe implemented
...
Switches to LAND mode 5 seconds after losing GPS if you're in a flight
mode that requires a GPS
2013-03-16 17:27:46 +09:00
Randy Mackay
f9539384a1
Copter: rename failsafe to failsafe_radio
...
Makes way for separation of failsafes for throttle, gps and gcs
2013-03-16 17:14:21 +09:00
Randy Mackay
9ad6f711f8
ArduCopter: replace FS_THR_RTL_MIN_DISTANCE with wp_radius
...
This effectively means that an RTL kicked off by a failsafe will
immediately switch to LAND mode only if within 2 meters. Previously the
radius was much wider (15m).
2013-01-13 20:00:47 +11:00
rmackay9
2181ec2ab0
ArduCopter: log watchdog event to dataflash
2013-01-02 09:55:37 +11:00
rmackay9
16f99ebcab
ArduCopter: fix to sub system used to record failsafe in dataflash ERR message
2013-01-02 09:55:37 +11:00
rmackay9
672fdfbf71
ArduCopter: added ERR dataflash message
...
Failsafe events changed to errors so they are more obvious.
Errors recorded to dataflash for failure to init compass and optical flow sensor.
Errors recorded for pwm failure.
Resolved a compile error when dataflash logging is disabled.
2013-01-02 09:55:37 +11:00
rmackay9
02bf3ea027
ArduCopter: Battery failsafe triggers RTL only if we are more than 15m from home, otherwise it performs a LAND
2013-01-02 09:55:37 +11:00
rmackay9
68b62abd38
ArduCopter with the new Camera and Relay classes for APM1 and APM2.
...
All changes by Sandro Benigno
2013-01-02 09:55:37 +11:00
rmackay9
5526ca204c
ArduCopter: on throttle failsafe, only initiate RTL if we are at least 15m from home
2013-01-02 09:22:51 +11:00
Pat Hickey
7af03127f6
ArduCopter: more work
2012-12-20 14:52:28 +11:00
rmackay9
2f748f8382
ArduCopter: renamed BATT_FAILSAFE to FS_BATT_ENABLE
2012-12-10 23:47:14 +09:00
rmackay9
d31efebd44
ArduCopter: rename throttle failsafe parameters.
...
Switch to LAND flight mode if throttle failsafe triggers and we do not have a GPS.
THR_FAILSAFE renamed to FS_THR_ENABLE.
THR_FS_VALUE renamed to FS_THR_VALUE.
THR_FS_ACTION removed (action is now controlled by setting FS_THR parameter).
2012-12-10 23:38:43 +09:00
rmackay9
e92b560df5
ArduCopter: low baterry failsafe
2012-11-15 23:35:41 +09:00
rmackay9
e212744f4c
ArduCopter: failsafe improvements
...
resolves momentary throttle drop to zero before failsafe engages
resolves motor cut after 30seconds if flying in stabilize without GPS (now switches to ALT_HOLD with target altitude zero)
disables motors if throttle was zero before failsafe event
2012-11-11 22:11:12 +09:00
Jason Short
d2a5928c06
Ap state updates
2012-11-09 22:15:15 -08:00
uncrustify
ff0e2e537e
uncrustify ArduCopter/events.pde
2012-08-21 18:55:43 -07:00
Jason Short
d674baadd2
ACM : Events - renamed target alt
2012-08-09 16:59:44 -07:00
Jason Short
8188058404
ACM: Failsafe Fix for Mission planner initiated AUTO mode
...
Keeps the failsafe from exiting Auto mode when returning from failsafe. Added arming ability for Toy mode.
2012-07-23 19:34:25 -07:00
Andrew Tridgell
8b258e23e7
ACM: prevent link flood with "Low Battery" warnings
...
thanks to Marco for noticing this
2012-06-05 11:31:40 +10:00
Robert Lefebvre
c8fb9a6635
More CopterLEDS changes.
...
Merged CopterLEDS and Piezo functions to eliminate pin conflict on APM2. Created new Parameter bit to turn piezo function on and off from MP. Moved GPS and Aux pin assignments to allow commonality between APM1 and 2. Set LED_Mode parameter default to 9 in order to make CopterLEDS completely backwards compatible with old Motor LEDS and Piezo code. Legacy users should see no difference.
2012-05-15 12:00:21 -04:00
Jason Short
b315e23bbd
Found missing Break in Switch statement.
2012-02-09 22:22:01 -08:00
Jason Short
a79d302b98
added set_new_altitude call()
2012-01-10 23:43:44 -08:00
Jason Short
5f55780b5e
Added comments
...
moved out failsafe check. otherwise the reporting was erroneous.
2012-01-10 23:42:26 -08:00
Jason Short
8f3c577e47
Made RTL go up 10m for failsafe
2012-01-06 10:20:48 -08:00
Jason Short
940fa9621c
Added minimum Altitude for RTL failsafe
2011-11-26 16:39:29 -08:00
Jason Short
44cb73c9fa
added safety checks for RTL
2011-11-26 16:39:29 -08:00
Jason Short
ec5b080167
Enable RTL
2011-11-26 16:39:29 -08:00
Andrew Tridgell
d89ae696ef
merged the GCS updates from ArduPlane to ArduCopter
...
this removes all the non-MAVLink GCS options, and simplifies the HIL
and GCS code a lot. It also adds async sending of low priority GCS
text messages.
2011-10-11 20:53:43 +11:00
Amilcar Lucas
3d1902abac
Use the new AP_Relay library
2011-10-02 14:22:27 +02:00
Jason Short
73fd0084be
Added Piezo Support, code from Oliver.
2011-09-18 17:12:28 -07:00
Andrew Tridgell
1456a2a912
renamed top level directories
...
ArduCopterMega -> ArduCopter
added archives directory for old code
2011-09-09 11:27:41 +10:00