murata
36f3fb316a
Copter: Notify the fence breach at the notification level
4 years ago
James O'Shannessy
a88f2721a8
ArduCopter: Use auto enable and auto disable from AC_Fence
4 years ago
James O'Shannessy
f228adfa75
ArduCopter: Improve auto-enable/disable of fence
4 years ago
Dr.-Ing. Amilcar do Carmo Lucas
92122e5133
Copter: automatically enable and disable floor fence on automated takeoff and landing
4 years ago
murata
17f285b68f
Copter: Add Smart RTL or LAND to the fence action
4 years ago
Peter Barker
ce5f23810b
ArduCopter: log disarm method
5 years ago
Michael du Breuil
b42b1c08c4
Copter: Support new AP_Vehicle::set_mode
5 years ago
Peter Barker
b4537bebd8
Copter: move control_mode_t into being Mode::Number enum class
...
Fixes this compiler error:
In file included from ../../ArduCopter/sensors.cpp:1:
In file included from ../../ArduCopter/Copter.h:195:
../../ArduCopter/mode.h:1291:9: fatal error: declaration shadows a variable in the global namespace [-Wshadow]
AUTO, // after A and B defined, pilot toggle the switch from one side to the other, vehicle flies autonomously
^
../../ArduCopter/defines.h:38:5: note: previous declaration is here
AUTO = 3, // fully automatic waypoint control using mission commands
^
1 error generated.
5 years ago
Peter Barker
6dce39cbe1
Copter: use AP_Arming methods to arm and disarm vehicle
...
Really just changing the namespace of init_arm_motors
6 years ago
Tom Pittenger
7824b64ad6
Copter: rename dataflash to logger
6 years ago
Peter Barker
c7e21d95ef
Copter: move Log_Write_Error into library
6 years ago
Peter Barker
1412921561
Copter: move sending of fence_status message up
6 years ago
chobitsfan
7f6b7dab2f
Copter: support fence actions SmartRTL and Brake
6 years ago
Raouf
f78ffefd66
Copter: Handle always land mode
7 years ago
chobits
75c2a2b02a
Copter: check for fence breaches when disarmed
7 years ago
Peter Barker
cb129fbdaf
Copter: remove argument to check()
...
Also, check() was check_fence()
7 years ago
Peter Barker
4dcb5aa3de
Copter: stop setting home distance in fence
7 years ago
Peter Barker
5d33cf08e1
Copter: eliminate calc_home_distance_and_bearing
...
Calling update_simple_mode_bearing calls get-heading
rather than the other way around
This will have the advantage of not calculating home bearing
when we stop calling update_simple_mode_bearing unnecesarily
7 years ago
Peter Barker
7b637334f4
Copter: eliminate mode_has_manual_throttle
7 years ago
khancyr
743d9ec65f
Copter: report polygon fence breach
8 years ago
Andrew Tridgell
0f6d0c5ba9
Copter: combined tri, single, coax and multicopter into a single build
...
this allows copter to be just 2 builds, one for heli, and one for
everything else
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Jonathan Challinger
1356deab8b
Copter: add control_mode_reason
9 years ago
Randy Mackay
290cdcf6fb
Copter: check fence when disarmed
...
this allows catching fence breaches as part of arming checks
10 years ago
Andrew Tridgell
278883c521
Copter: finished conversion to .cpp files
...
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
10 years ago
Andrew Tridgell
356ece3402
Copter: rename .pde files to .cpp files
10 years ago
Randy Mackay
9dbef1c6ee
Copter: check fence alt without home being set
...
Alt limit is based on EKF origin if home-alt is not set. This is
generally the same but could be different if there's a lot of baro drift
before take-off or the vehicle is carried to a different altitude after
power-on.
10 years ago
Randy Mackay
55d8f440d4
Copter: fix alt sent to fence_check to be meters
10 years ago
Jonathan Challinger
be8c118b63
Copter: change altitude fence to work on home altitudes instead of origin altitudes
10 years ago
Randy Mackay
43ba94e99a
Copter: rename manual_flight_mode to mode_has_manual_throttle
10 years ago
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
10 years ago
Jonathan Challinger
a04ec79efa
Copter: add land_complete to fence disarm check
10 years ago
Jonathan Challinger
8e3d163c3d
Copter: Change all zero throttle checks that should be conservative to use ap.throttle_zero
10 years ago
Randy Mackay
dba8fac515
Copter: remove unused variables from fence.pde
...
saves 2 bytes
11 years ago
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
11 years ago
Randy Mackay
8e62035328
Copter: remove unnecessary check of flight mode from fence response
11 years ago
Randy Mackay
7cc8a9038f
Copter: move failsafe flags into structure
12 years ago
Randy Mackay
39ab4f62ef
Copter: add SPORT mode
12 years ago
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.
12 years ago
Randy Mackay
66cecbfdc3
Copter Fence: bug fix to avoid repeatedly invoking LAND mode
12 years ago
Olivier-ADLER
24e1f074d0
Copter: Fence missing GPS 3D fix check
...
Fence was missing GPS 3D fix check before selecting recovery decision.
12 years ago
Randy Mackay
6836964e3c
Copter: resolve compiler warning re fence
12 years ago
Randy Mackay
3aca35777f
Copter: use mavlink fence message
...
Note: we should consider moving this send via mavlink into the fence
library
12 years ago
Randy Mackay
58d1da2d80
Copter: integrate AC_Fence in place of limits
...
Lesser functionality than limits but saves more than 150 bytes and it
works
12 years ago