Commit Graph

8 Commits

Author SHA1 Message Date
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
Andrew Tridgell 8554081be5 AP_RangeFinder: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +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
Andrew Tridgell 1d5bf5a58a AP_RangeFinder: text messages and more defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 83114f4c74 AP_RangeFinder: rename more variables, types and defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 7b1337adaf AP_RangeFinder: change UAVCAN_ENABLED to DRONECAN_ENABLED 2023-04-11 10:31:31 +10:00
Andrew Tridgell f7a52557f6 AP_RangeFinder: update header references 2023-04-11 10:31:31 +10:00
Andrew Tridgell 01a32430f5 AP_RangeFinder: rename UAVCAN drivers to DroneCAN 2023-04-11 10:31:31 +10:00