Commit Graph

628 Commits

Author SHA1 Message Date
Randy Mackay 4b040eef93 AP_RangeFinder: alphabetise type parm docs 2024-11-25 20:28:18 +11:00
Thomas Watson fbeab64be2 AP_RangeFinder: optimize DroneCAN subscription process
* remove unnecessary nullptr check, these are always called from an
  initialized AP_DroneCAN so if it's nullptr something has gone
  horrifically wrong

* pass in driver index instead of repeatedly calling function to get it

* simplify error handling; knowing exactly which allocation failed is not
  super helpful and one failing likely means subsequent ones will too,
  as it can only fail due to being out of memory
2024-11-18 10:30:29 +11:00
muramura 8de103d6ee AP_RangeFinder: Move the flag setting location of has_data 2024-09-29 09:40:20 +10:00
Peter Barker 7a930637e0 AP_RangeFinder: RDS02UF: avoid nuking partial messages after good parse
there may be a fragment of another packet in the buffer
2024-09-03 14:34:23 +10:00
Peter Barker ee6bd4fca0 AP_RangeFinder: number enum entries
we log these so they should be numbered
2024-08-27 11:05:32 +10:00
Peter Barker fd418ca59d AP_RangeFinder: use GCS_SEND_TEXT rather than gcs().send_text
Co-authored-by: muramura <ma2maru@gmail.com>
2024-08-07 18:33:16 +10:00
Andrew Tridgell c40099a162 AP_Rangefinder: cleanup printf warnings 2024-07-11 09:34:29 +10:00
Henry Wurzburg f087e9d25d AP_RangeFinder: make metadata more consistent 2024-07-02 11:34:29 +10:00
Peter Barker 118f3b41ac AP_RangeFinder: create a AP_RANGEFINDER_BACKEND_CAN_ENABLED
avoid cmpilation problems when rangefinder not enabled but CAN is
2024-07-02 09:17:26 +10:00
Peter Barker f9a94fd7dd AP_RangeFinder: make AP_RANGEFINDER_ENABLED remove more code 2024-07-02 09:17:26 +10:00
Andrew Tridgell 8554081be5 AP_RangeFinder: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Clyde McQueen b853fe3366 AP_RangeFinder: fix Lua timeout 2024-05-14 09:26:25 +10:00
rishabsingh3003 b22e4fa085 AP_RangeFinder: Refactor RDS02UF rangefinder 2024-04-01 16:12:53 +11:00
zebulon-86 871292cb29 AP_RangeFinder:add support for RDS02UF radar driver on serial
parameter RNGFNDx_TYPE is 42

Apply suggestions from code review

Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2024-04-01 16:12:53 +11:00
Tom Pittenger 50fe9e915f AP_Rangefinder: added a rate-limited and a compile-out option for the error reporting 2024-03-18 12:40:37 -07:00
jkronk 5393af5ce4 AP_RangeFinder: add Ainstein radar driver 2024-03-18 12:40:37 -07:00
Tom Pittenger 12f32707b3 AP_Rangefinder: fix (very) out-of-range lidar causing float inf 2024-03-13 12:02:10 -07:00
rishabsingh3003 89d8a1351c AP_RangeFinder: move multican to AP_CANSensor 2024-02-27 10:59:41 +11:00
Peter Barker 330dd7221f AP_RangeFinder: allow compilation with HAL_LOGGING_ENABLED false 2024-01-17 18:25:55 +11:00
Peter Mullen 2cc63f52a1 AP_RangeFinder: Add LUA interface to access Range Finder state 2024-01-02 11:31:02 +11:00
Peter Barker 9394a7b26b AP_RangeFinder: use boolean uartdriver read method 2023-11-29 18:29:11 +11:00
Peter Mullen adc0ebf9de AP_RangeFinder: Add signal_quality_pct to range finder state 2023-11-21 22:24:12 +11:00
muramura 8c27d81c6a AP_RangeFinder: Move to a process that uses maximum value acquisition 2023-11-16 11:02:21 -08:00
Randy Mackay da6f31d5c7 AP_RangeFinder: JRE rename data_buff_ofs 2023-11-15 19:10:05 +09:00
Peter Barker 6bd7024274 AP_RangeFinder: change JRE parsing to reduce RAM overhead 2023-11-15 19:10:05 +09:00
jfbblue0922 fef47303d2 AP_RangeFinder: add serial driver for JRE 2023-11-15 19:10:05 +09:00
Peter Barker 26e6a11ba3 AP_RangeFinder: remove more code based on defines 2023-11-01 19:29:48 +11:00
muramura abf4cd573e AP_RangeFinder: Remove unnecessary whitespace(NFC) 2023-10-30 07:16:54 +09:00
Peter Barker e55799c8d8 AP_RangeFinder: correct use of AP_RANGEFINDER_LUA_ENABLED
new, separate define to AP_SCRIPTING_ENABLED use was incomplete
2023-10-27 14:16:47 +11:00
rishabsingh3003 5db60eb9ac AP_RangeFinder: Allow new Maxsonar I2C reading even if reading fails 2023-10-25 10:03:54 +11:00
rishabsingh3003 de61ac3055 AP_RangeFinder: Parse signal strength and status for TOFSenseFI2c 2023-10-25 10:03:54 +11:00
rishabsingh3003 9a02967e3d AP_RangeFinder: Add NoopLoop TOFSenseF I2c driver 2023-10-25 10:03:54 +11:00
Willian Galvani 7953cd9a89 AP_RangeFinder: change get_signal_quality signature to use int8_t 2023-10-11 08:29:58 +11:00
Clyde McQueen dfe6c21ea5 AP_RangeFinder_MAVLink: implement get_signal_quality_pct
Co-authored-by:  Willian Galvani <williangalvani@gmail.com>
2023-10-11 08:29:58 +11:00
Willian Galvani 494b3076ac AP_RangeFinder: add quality to Blue Robotics Ping1D driver 2023-10-11 08:29:58 +11:00
Willian Galvani fd4da61067 AP_RangeFinder: log signal quality 2023-10-11 08:29:58 +11:00
rishabsingh3003 5aea8317b5 AP_RangeFinder: Small optimizations 2023-09-09 17:21:44 +10:00
rishabsingh3003 a8a8c96610 AP_RangeFinder: small NFC fixes 2023-09-09 17:21:44 +10:00
rishabsingh3003 747c708dba AP_RangeFinder: Have special handling for NRA24 pre-arm checks 2023-09-09 17:21:44 +10:00
rishabsingh3003 f6a244e14f AP_RangeFinder: Add NanoRadar NRA24 CAN driver 2023-09-09 17:21:44 +10:00
rishabsingh3003 4422296b95 AP_RangeFinder: Add TOFSenseP CAN Rangefinder 2023-09-09 17:21:44 +10:00
Peter Barker 9f0c60b413 AP_RangeFinder: allow more libraries to compile with no HAL_GCS_ENABLED 2023-09-05 22:23:51 +10:00
Peter Barker 0355ab45ff AP_RangeFinder: add missing internalerror include 2023-09-03 08:41:10 +10:00
Andrew Tridgell 5f47a94e2b AP_RangeFinder: use NaN for invalid rangefinder data 2023-08-24 13:06:40 +10:00
Peter Barker fb0ebf75ca AP_RangeFinder: move rangefinder rotation default down into AP_Periph 2023-08-09 17:39:49 +10:00
Peter Barker 5670b8a062 AP_RangeFinder: compile mavlink rangefinder in only if HAL_GCS_ENABLED 2023-08-08 11:39:45 +10:00
Henry Wurzburg 86afb1d66b AP_RangeFinder:correct nooploop max dist 2023-08-05 20:04:41 +10:00
Peter Barker b7232b1d38 AP_RangeFinder: add missing include for I2cDevice.h
needed for the FOREACH_I2C macro
2023-07-11 10:30:02 +09:00
Peter Barker f697489ab7 AP_RangeFinder: correct use of enable defines for Lua backend 2023-07-11 10:30:02 +09:00
Peter Barker bf3bafcd17 AP_RangeFinder: move remaining feature defines into _config.h 2023-07-11 10:30:02 +09:00