Rishabh
5e5ca6e02a
AP_Proximity: Check for stray faces and add new param for filter cut off freq
4 years ago
Randy Mackay
1fad5d46e7
AP_Proximity: add #if HAL_PROXIMITY_ENABLED
4 years ago
Rishabh
e9c0e50185
AP_Proximity: Filter out land detected by sensors
4 years ago
Rishabh
044e1850d4
AP_Proximity: Add a low pass filter per face for distances
4 years ago
Rishabh
de67e2b70c
AP_Proximity: refactor changes done for 3-D Boundary
4 years ago
Rishabh
343ba1a693
AP_Proximity: Use only valid boundary for Simple Avoidance
4 years ago
Rishabh
4fce715a9a
AP_Proximity: Shift methods to Proximity_Boundary_3D class and support 3D Boundary
4 years ago
Randy Mackay
63a21c6c12
AP_Proximity: add correct_angle_for_orientation to backend
4 years ago
Rishabh
9b5922786e
AP_Proximity: Push 3D data into OA_DB
5 years ago
Randy Mackay
dac84f4a9d
AP_Proximity: integrate oadb ekf-offset change
5 years ago
Randy Mackay
449b8d124b
AP_Proximity: remove unused get_horizontal_distance
5 years ago
Randy Mackay
1d6519af72
AP_Proximity: always use 8 sectors and fix ignore areas
5 years ago
Randy Mackay
f60ec91993
AP_Proximity: remove unnecessary const from database_push
...
also shorten current_vehicle_bearing argument to just current_heading
5 years ago
Peter Barker
8fe16f5627
AP_Proximity: use enum class for status
5 years ago
Tom Pittenger
b8dcdca909
AP_Proximity: add Object Avoidance Database, remove old Sector->Location converter
6 years ago
Pierre Kancir
5b745aa1f1
AP_Proximity: pass mavlink_message_t by const reference
6 years ago
Randy Mackay
9c3812e384
AP_Proximity: move copy_locations to backend
...
also remove unused get_locations
also fix comment for copy_locations method
6 years ago
Pierre Kancir
38540b4dcc
AP_Proximity: add PROXIMITY_MAX_DIRECTION and PROXIMITY_SENSOR_ID_START
8 years ago
Randy Mackay
3ad5c3775e
AP_Proximity: rename get_distances to get_horizontal_distances
...
Also fix existing bug in return
8 years ago
Randy Mackay
a47e215a8e
AP_Proximity: add get_upward_distance
...
This allow support for upward facing proximity sensor received through a DISTANCE_SENSOR message.
Also added SITL test
8 years ago
Randy Mackay
74f1899aeb
AP_Proximity: boundary_points requires only one valid distance
...
Object avoidance is possible with just one valid distance
Boundary is initialised in new init_boundary function to be 100m from
vehicle
If sectors do not have valid distance measurements, we use the distance
from adjacent sectors. This conveniently leads to a concave shaped
boundary that keeps the vehicle from travelling into the dataless sector.
8 years ago
Randy Mackay
a0a8472a44
AP_Proximity: fix consumption of distance-sensor messages
8 years ago
Randy Mackay
fbbd13db75
AP_Proximity: add get_object methods for use with non-GPS avoidance
8 years ago
Randy Mackay
54a87ad35c
AP_Proximity: set minimum boundary distance
...
AC_Avoidance will not stop if it thinks the vehicle is on or outside the polygon. Setting a minimum distance ensures the vehicle is always within the polygon.
8 years ago
Randy Mackay
57ae14ab4c
AP_Proximity: add get distances, distance_max, distance_min
...
These are used to send distance-sensor messages to the ground station
8 years ago
Randy Mackay
6293fa1595
AP_Proximity: add boundary points for object avoidance
...
This returns a fence which can be used for object avoidance by AC_Avoidance
8 years ago
Randy Mackay
26332251f5
AP_Proximity: add ignore areas
...
Only SF40c uses these ignore areas for now at least.
It is safe to increase the eeprom locations for the 2nd proximity instance because we only define a single instance.
8 years ago
Randy Mackay
87dea46f5d
AP_Proximity: add get_closet_object for use in pre-arm checks
8 years ago
Randy Mackay
f594a5a7d6
AP_Proximity: move sectors to backend
...
This prepares for sectors to be re-used by the SITL driver
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
Randy Mackay
c3087edbe8
AP_Proximity: add library and SF40C driver
8 years ago
Andrew Tridgell
50958bc026
AP_RangeFinder: fixed typo
9 years ago
Allan Matthew
d3831e4a5d
RangeFinder: add MAVLink rangefinder
9 years ago
Lucas De Marchi
f6712c8bc4
AP_RangeFinder: replace header guard with pragma once
9 years ago
Gustavo Jose de Sousa
5d39587469
AP_RangeFinder: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Randy Mackay
7663b8eade
RangeFinder: replace healthy with status and no_data methods
10 years ago
Andrew Tridgell
a6d76b4e03
AP_RangeFinder: added PX4-PWM rangefinder
...
uses PWM input driver to read a rangefinder
10 years ago
Andrew Tridgell
cb037f3416
AP_RangeFinder: new rangefinder API ready for its first backend
...
the backends are setup to have just the minimum functionality needed
for a rangefinder, with all of the higher level logic in the
frontend. This should make writing a new backend easier
11 years ago
akdslr
d759a9dd9b
AP_RangeFinder: Seperated the Backend driver functionality into a separate class
11 years ago