Commit Graph

11 Commits

Author SHA1 Message Date
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