Peter Barker
7198234a44
AC_Fence: clean headers
6 years ago
Peter Barker
4c3a93d8ca
AC_Fence: remove keywords.txt
6 years ago
Peter Barker
5448cfda80
AC_Fence: remove always-true contains_return_point parameter
6 years ago
Peter Barker
a52a1f710f
AC_Fence: add singleton (AP::fence())
6 years ago
Peter Barker
6313cbca0b
AC_Fence: stop taking reference to AHRS in constructor
6 years ago
chobitsfan
e7f87f767a
AC_Fence: add SmartRTL and Brake actions
6 years ago
Peter Barker
9deee2a805
AP_Fence: adjust for Location_Class and Location unification
6 years ago
Peter Barker
c4bee518bb
AC_Fence: rename send_extended_status1 to send_sys_status
6 years ago
Peter Barker
9c0bb9c47d
AC_Fence: do not enable altitude fence on Rover by default
6 years ago
Randy Mackay
06aa29eb2a
AC_Fence: get_polygon_points does not include return point
6 years ago
Raouf
e55369b1c8
AC_Fence: add always land option
7 years ago
Steven Josefs
e8debde4b7
AC_Fence: hide ALT_MAX parameter from Rover
7 years ago
Peter Barker
c8e0ae6890
AC_Fence: adjust fence sys_status failed based on position and parameters
7 years ago
Peter Barker
e30a6bbce3
AC_Fence: rename sys_status methods from geofence_ to sys_status_
7 years ago
Peter Barker
a5aafab7ff
AC_Fence: use pre-arm checks for sanity checks
...
Magically resetting people's parameters not a great look.
7 years ago
Peter Barker
155407956c
AC_Fence: add a pre-arm check for polygon fence validity
...
Also change SYS_STATUS bit to be unhealthy if boundary invalid
7 years ago
Peter Barker
588b0c17c8
AC_Fence: remove AC_FENCE_TYPE_NONE define
...
0 is the appropriate value for a bitmask which is empty
7 years ago
Peter Barker
aa482bae40
AC_Fence: remove argument to check()
...
Also, rename check_fence() to check()
7 years ago
Peter Barker
0f94fde434
AC_Fence: get home distance directly from ahrs
7 years ago
Peter Barker
20e295c23a
AC_Fence: check supplied location within fence rather than current loc
7 years ago
Andrew Tridgell
25b9a7e711
AC_Fence: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Peter Barker
86fe1671c1
AC_Fence: fix comment
7 years ago
Peter Barker
e8151a7ec1
AC_Fence: require home as well as origin for prearm checks
7 years ago
Peter Barker
1ecfdffa76
AC_Fence: methods to help populate SYS_STATUS
7 years ago
Peter Barker
ac3f030a34
AC_Fence: factor out check_fence_alt_max
...
NFC
7 years ago
Peter Barker
d04a4dd0f8
AC_Fence: factor out check_fence_circle
...
NFC
7 years ago
Peter Barker
d379c7bbd9
AC_Fence: factor out check_fence_polygon
...
NFC
7 years ago
Peter Barker
518399c13a
AC_Fence: stop looking at EKF filter status
...
Fence has no business looking at what the filter status is.
Fence should only care whether it can currently get a position.
7 years ago
khancyr
65373b85f0
AC_Fence: replace AP_InertialNav by AHRS
7 years ago
Michael du Breuil
983a330cd5
AC_Fence: Remove unused duplicate methods
...
The Vector2l methods completely duplicate the code of the Vector2f
methods, but aren't used anywhere. They are therefore subject to bitrot
and aren't adding any value. (Also shrinks the build by 8 bytes for some
reason, given that it's unused code I expected to see no difference in
binary size).
7 years ago
Lucas De Marchi
52686ec838
AC_Fence: add static create method
7 years ago
khancyr
f583121433
AC_Fence: reset fences breach on disable
...
Also rename enable function parameter
8 years ago
Peter Barker
ae6df4fc04
AC_Fence: remove global static send_statustext_chan
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
9ac429ab13
AC_Fence: Use SI units conventions in parameter units
...
Follow the rules from:
http://physics.nist.gov/cuu/Units/units.html
http://physics.nist.gov/cuu/Units/outside.html
and
http://physics.nist.gov/cuu/Units/checklist.html
one further constrain is that only printable (7bit) ASCII characters are allowed
8 years ago
Randy Mackay
c1a25c25f7
AC_Fence: return failure message
8 years ago
Randy Mackay
8171645876
AC_Fence: pre-arm check requires GPS if polygon fence enabled
8 years ago
Jacob Walser
3c6df7cc0e
AC_Fence: Add minimum altitude limit
...
get_safe_alt() -> get_safe_alt_max() and get_safe_alt_min()
8 years ago
murata
0f486aeecb
AC_Fence: shorten calculation of return value
8 years ago
murata
b48ea53f60
Revert "AC_Fence: Activate the create flag."
...
This reverts commit c63a6a2738
.
8 years ago
murata
c63a6a2738
AC_Fence: Activate the create flag.
8 years ago
murata
c808ee2f49
Global: To nullptr from NULL.
...
RC_Channel: To nullptr from NULL.
AC_Fence: To nullptr from NULL.
AC_Avoidance: To nullptr from NULL.
AC_PrecLand: To nullptr from NULL.
DataFlash: To nullptr from NULL.
SITL: To nullptr from NULL.
GCS_MAVLink: To nullptr from NULL.
DataFlash: To nullptr from NULL.
AP_Compass: To nullptr from NULL.
Global: To nullptr from NULL.
Global: To nullptr from NULL.
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
Peter Barker
d188504b8b
AC_Fence: remove unused variable _boundary_revalidate
8 years ago
Randy Mackay
e7020b218a
AC_Fence: revert param Enable to be FLAG_ENABLE
...
This reverts commit 5e811b8463
.
9 years ago
Tom Pittenger
5e811b8463
AC_Fence: set param "Enable" to be FLAG_ENABLE
9 years ago
murata
b6c27b58a8
AC_Fence: magic number 4 changed to size of uint32_t
9 years ago
Randy Mackay
e820506c5a
AC_Fence: add polygon fence check to check_destination_within_fence
9 years ago
Randy Mackay
a9d1dcd6ac
AC_Fence: trigger reloading of polygon fence if update from GCS
...
The GCS can either modify a point with a mavlink message or directly change the FENCE_TOTAL parameter value
9 years ago
Randy Mackay
5153c3d195
AC_Fence: merge with add polygon support
9 years ago
Randy Mackay
d91805edbf
AC_Fence: add support for polygon fences
9 years ago