Commit Graph

7 Commits

Author SHA1 Message Date
Thomas Watson 453b83c159 AP_Proximity: 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 c681701f81 AP_Proximity: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +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 739fb91439 AP_Proximity: rename AP_UAVCAN to AP_DroneCAN 2023-04-08 07:11:23 +10:00
bugobliterator 47e5337fbd AP_Proximity: replace libuavcan with libcanard based driver 2023-03-29 17:16:39 +11:00
rishabsingh3003 ea1fb96e7b AP_Proximity: Add DroneCAN backend 2022-12-15 07:20:05 +11:00