Commit Graph

209 Commits

Author SHA1 Message Date
Peter Barker 37f638c5f7 AP_Proximity: include AP_Proximity_Backend.h in AP_Proximity.cpp
fixes a compilation problem if all of the backends are compiled out!
2023-04-16 12:29:42 +10:00
Peter Barker a499fcc71c AP_Proximity: don't check MINIMIZE_FEATURES when also checking BOARD_FLASH_SIZE
we have an assertion that no board with >1MB of flash is minimized
2023-04-15 09:33:35 +10:00
Peter Barker c110ac489c AP_Proximity: add and use defines for all Proximity backends 2023-04-13 07:07:18 +10:00
Andrew Tridgell 00b9833fac AP_Proximity: text messages and more defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 70b04a22f0 AP_Proximity: rename more variables, types and defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 739fb91439 AP_Proximity: rename AP_UAVCAN to AP_DroneCAN 2023-04-08 07:11:23 +10:00
Peter Barker 4a29a57d8d AP_Proximity: fix fallthrough in proximity switch
in the case that cygbot was selected but not compiled in we would try to insantiate a DroneCAN backend
2023-04-06 15:10:55 +10:00
bugobliterator 47e5337fbd AP_Proximity: replace libuavcan with libcanard based driver 2023-03-29 17:16:39 +11:00
Randy Mackay d94236650a AP_Proximity: reduce SF45b mode filter to 3 elements 2023-03-01 18:22:22 +11:00
Prathamesh Patil b9d718c938 AP_Proximity: corrected return type of uart::read() 2023-02-21 16:52:30 +11:00
rishabsingh3003 ea1fb96e7b AP_Proximity: Add DroneCAN backend 2022-12-15 07:20:05 +11:00
jackhong12 4a4f361a17 all: use CLASS_NO_COPY() macro 2022-10-04 11:23:04 +11:00
HefnySco 2a0b103c2c AP_Proximity: change PROXIMITY_GND_DETECT_THRESHOLD to param 2022-09-14 19:40:35 +10:00
rishabsingh3003 6926466d88 AP_Proximity: Fix comments 2022-08-24 18:26:27 +10:00
rishabsingh3003 6e603418eb AP_Proximity: Remove primary_instance 2022-08-24 18:26:27 +10:00
rishabsingh3003 3a347374c8 AP_Proximity: Cycle through all drivers to check for upward distance 2022-08-24 18:26:27 +10:00
rishabsingh3003 5d29dd98c1 AP_Proximity: Make new Utils file for PRX utility functions 2022-08-24 18:26:27 +10:00
rishabsingh3003 f0f24dde99 AP_Proximity: Make sure all sensors are used for pre arm check 2022-08-24 18:26:27 +10:00
rishabsingh3003 b0108f2c0c AP_Proximity: Increase number of available proximity sensor 2022-08-24 18:26:27 +10:00
Randy Mackay 0cbba4fdd0 AP_Proximity: distance_min/max checks all backends 2022-08-24 18:26:27 +10:00
Randy Mackay 1f0a633425 AP_Proximity: fixup handle_msg comment 2022-08-24 18:26:27 +10:00
Randy Mackay 7dbbca8d58 AP_Proximity: remove public get_orientation and get_yaw_correction
this are only used by backends
2022-08-24 18:26:27 +10:00
Randy Mackay 965cdd7e72 AP_Proximity: fixup detection of serial drivers 2022-08-24 18:26:27 +10:00
Randy Mackay 826cf558eb AP_Proximity: log if any drivers created
allows logging even if only 2nd proximity sensor is configured
2022-08-24 18:26:27 +10:00
Randy Mackay 436f77d673 AP_Proximity: boundary uses shortest dist from multiple backends
Co-authored-by: Rishabh <f20171602@hyderabad.bits-pilani.ac.in>
2022-08-24 18:26:27 +10:00
Randy Mackay 7432a20394 AP_Proximity: move boundary to frontend
Co-authored-by: Rishabh <f20171602@hyderabad.bits-pilani.ac.in>
2022-08-24 18:26:27 +10:00
Randy Mackay eff86c88ab AP_Proximity: reorder method declarations and implementations 2022-08-24 18:26:27 +10:00
Randy Mackay b6d133e285 AP_Proximity: reduce ignore areas to 4 per backend 2022-08-24 18:26:27 +10:00
Randy Mackay 6025b1dcaa AP_Proximity: move params to separate class
simplies increasing the maximum number of backends
2022-08-24 18:26:27 +10:00
rishabsingh3003 5af59abb8f AP_Proximity: Add orientation param to Cygbot 2022-08-22 19:12:45 -04:00
Randy Mackay 63db93c6d7 AP_Proximity: minor format fix 2022-08-17 10:46:57 +09:00
Randy Mackay 1dd2fb695c AP_Proximity: minor format fix 2022-08-17 10:46:56 +09:00
Iampete1 ed330fd026 AP_Proximity: change AC_FENCE to AP_FENCE_ENABLED 2022-07-27 19:04:56 +10:00
Iampete1 1342fa4851 AP_Proximity: fix complation without fence 2022-07-27 19:04:56 +10:00
Iampete1 68b7293d9a AP_Proximity: move to config.h pattern and only include log structures if enabled 2022-07-13 18:14:12 +10:00
Mirko Denecke e52ca87cbc AP_Proximity: fix misleading variable name for TerraRangerTower 2022-05-11 15:53:47 +09:00
Peter Barker 489f68f68e AP_Proximity: tidy includes 2022-05-03 09:14:58 +10:00
xianglunkai c853694f7a AP_Proximity_Boundary_3D:correction of miswriting 2022-04-21 08:41:07 +09:00
Peter Barker a62e08ee40 AP_Proximity: move logging of Proximity into Proximity library 2022-04-13 16:22:19 +10:00
Andy Piper 173a43e361 AP_Proximity: nuke clang warnings 2022-03-03 16:34:14 +11:00
Tatsuya Yamaguchi 4309fc817e AP_Proximity: change variable type from float to uint8_t 2022-02-07 08:44:09 +09:00
Rishabh 6ceee23b85 AP_Proximity: Add parameter to allow manually setting range to sensors 2022-02-03 09:10:55 +09:00
Rishabh ef20d749bf AP_Proximity: Fix Cygbot_D1 driver CRC 2022-01-31 14:10:21 +09:00
khanasif786 c50b8597db AP_Proximity: Removed AP_Proximity_LightWareSF40C_v09
deleted older drivers for fixing running out of flash space in some boards
2022-01-07 08:28:59 +09:00
Andrew Tridgell 93d8a0606f AP_Proximity: use have_serial when detecting
avoid find_serial() as it changes port options
2021-12-21 11:07:44 +11:00
Rishabh 6dea779b1e AP_Proximity: Add Cygbot D1 2021-12-03 08:02:50 +09:00
Sebastian Quilter 1fb1eb793f AP_Proximity: make rangefinder ranges m rather than cm 2021-10-21 21:28:53 +11:00
Iampete1 25aedc4ee7 AP_Proximity: lower SF45B update rate 2021-09-26 20:26:20 +09:00
Josh Henderson f534a315ea AP_Proximity: use vector.xy().length() instead of norm(x,y) 2021-09-14 10:43:46 +10:00
Iampete1 9bcd706dae AP_Proximity: hide params with enable flag 2021-08-24 09:38:46 +10:00