Commit Graph

17 Commits

Author SHA1 Message Date
Randy Mackay 55d8f440d4 Copter: fix alt sent to fence_check to be meters 2015-04-14 16:10:09 +09:00
Jonathan Challinger be8c118b63 Copter: change altitude fence to work on home altitudes instead of origin altitudes 2015-04-14 16:10:08 +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 7bd8d48809 Copter: fence breach causes disarm if landed
Previously it would only disarm if the throttle was also at zero.
Pair programmed with Tridge
2014-10-16 14:09:02 +09:00
Jonathan Challinger a04ec79efa Copter: add land_complete to fence disarm check 2014-10-11 15:29:41 +09:00
Jonathan Challinger 8e3d163c3d Copter: Change all zero throttle checks that should be conservative to use ap.throttle_zero 2014-10-08 20:54:24 +09:00
Randy Mackay dba8fac515 Copter: remove unused variables from fence.pde
saves 2 bytes
2014-04-27 11:11:12 +09:00
Randy Mackay 03831cdd28 Copter: GPS ok only when not glitching
Removed redundant checks to GPS_ok before setting flight mode to RTL
(this check is already performed inside the set_mode function)
Removed reset of home distance and bearing when GPS lock is lost, it now
remains at the last known value
2013-11-11 22:24:18 +09:00
Randy Mackay 8e62035328 Copter: remove unnecessary check of flight mode from fence response 2013-10-24 16:42:14 +09:00
Randy Mackay 7cc8a9038f Copter: move failsafe flags into structure 2013-09-26 19:37:15 +09:00
Randy Mackay 39ab4f62ef Copter: add SPORT mode 2013-08-05 21:04:41 +09:00
Randy Mackay 7ea971d948 Copter: check set_mode for failure
Previously if set_mode failed it would return the copter to stabilize
mode.  With this commit set_mode returns a true/false indicating whether
it succeeded or not so the caller can make the decision as to the
appropriate response which could be to stay in the current flight mode
or try another flight mode.
2013-07-20 11:01:10 +09:00
Randy Mackay 66cecbfdc3 Copter Fence: bug fix to avoid repeatedly invoking LAND mode 2013-06-25 22:23:31 +09:00
Olivier-ADLER 24e1f074d0 Copter: Fence missing GPS 3D fix check
Fence was missing GPS 3D fix check before selecting recovery decision.
2013-06-25 22:23:29 +09:00
Randy Mackay 6836964e3c Copter: resolve compiler warning re fence 2013-05-04 23:18:16 +09:00
Randy Mackay 3aca35777f Copter: use mavlink fence message
Note: we should consider moving this send via mavlink into the fence
library
2013-05-01 17:06:58 +09:00
Randy Mackay 58d1da2d80 Copter: integrate AC_Fence in place of limits
Lesser functionality than limits but saves more than 150 bytes and it
works
2013-04-27 11:14:07 +09:00