Peter Barker
e545a429a0
AC_Fence: rename APMrover2 to Rover
5 years ago
Tatsuya Yamaguchi
5688031f02
AC_Fence: add the description of FENCE_ACTION in Rover
5 years ago
Randy Mackay
9e51731bae
AC_Fence: turn off debug msg re memory allocation
5 years ago
Randy Mackay
7c034990b5
AC_Fence: relax sys-status healthy reporting
5 years ago
Peter Barker
714a3e2462
AC_Fence: support for multiple polygon fences
...
AC_Fence: add interface for retrieving exclusion polygons
AC_Fence: add interface to get exlusion polygons to polyfence loader
AC_Fence: add suport for inclusion circles
AC_Fence: add option for compiling-out FENCE_POINT protocol support
AC_Fence: get_exclusion_polygon and get_boundary_points set num_points to zero on failure
AC_Fence: use Debug(...) to hide debug messages
AC_PolyFence_loader: add methods to retrieve all inclusion zones
AC_PolyFence_loader: valid simply returns true if a polygon boundary can be returned
AC_Fence: add get_exclusion_circle
AC_Fence: add get_exclusion_circle_update_ms accessor
AC_Fence: PolyFence_loader gets inclusion circle accessors
AC_PolyFence_loader: add and use semaphore to protect loaded fence
AC_Fence: move fence breach check below fence type checks
This allows us to provide more information to the user about why they
are breached.
For example, if the radius is negative you are considered in breach of
it - but we'd tell you you were breached, not that your radius was
invalid
AC_Fence: clear the fence if we discover the user has set the fence count to zero
5 years ago
Peter Barker
ff37590776
AC_Fence: move polygon points into AC_Fence_Polygon
5 years ago
Peter Barker
a5ec64fc99
AC_Fence: tidy get_breach_distance
...
The polygon fence will soon be able to supply a breach distance -
prepare for that.
6 years ago
Peter Barker
6a241cc3e9
AC_Fence: remove pointless sanity check
6 years ago
Pierre Kancir
bf74cb4e99
AC_Fence: pass mavlink_message_t by const reference
6 years ago
Randy Mackay
beb9ecbdcb
AC_Fence: add get_boundary_update_ms
...
this allows callers to detect changes in the underlying polygon fence
6 years ago
Randy Mackay
0f6e61bc33
AC_Fence: add is_polygon_valid accessor
6 years ago
Peter Barker
062ee71135
AC_Fence: simplify fence loading
...
There's only one caller to this, who didn't force loading - so remove
the unused parameter.
Also remove the _boundary_loaded boolean; it was only set to true in one
place - just before the sole caller called the function!
6 years ago
Peter Barker
2822c635ec
AC_Fence: correct get_boundary_points to account for closing point
...
Also rename from get_polygon_points
6 years ago
Pierre Kancir
4dbac3de60
GCS_Common: remove mavlink send_buf usage
6 years ago
Pierre Kancir
e4987f17b9
AC_Fence: use get_distance_NE instead of location_diff
6 years ago
Peter Barker
3629273959
AC_Fence: use enum class for AltFrame enumeration
6 years ago
Michael du Breuil
281d3b1189
AC_Fence: check the return value of fetching the EKF origin
6 years ago
Peter Barker
8991fd8fcf
AC_Fence: clear breaches if boundary invalid etc
6 years ago
Peter Barker
434f22cf40
AC_Fence: correct fence upload reload boundary trigger
...
The check in AC_Fence::check_fence_polygon is for boundary points, not
boundary loaded
6 years ago
Peter Barker
c04d2145a1
AC_Fence: correct fence pre-arm position check
6 years ago
Dr.-Ing. Amilcar do Carmo Lucas
f2ca3556cd
AC_Fence: replace location_offset() and get_distance() function calls with Location object member function calls
...
This allows removing duplicated code
6 years ago
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