Commit Graph

8 Commits

Author SHA1 Message Date
Thomas Watson def199e61f AP_Baro: 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 72dc87e5c1 AP_Baro: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Mykhailo Kuznietsov 9d6b015a8e AP_Baro: Fix some typos
Fixed some typos found in the code.
2023-10-12 18:30:42 +11:00
Andrew Tridgell 70a7115312 AP_Baro: text messages and more defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 0e1927fc35 AP_Baro: rename more variables, types and defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 8d21ef71d3 AP_Baro: change UAVCAN_ENABLED to DRONECAN_ENABLED 2023-04-11 10:31:31 +10:00
Andrew Tridgell 55b1e6d5d0 AP_Baro: update header references 2023-04-11 10:31:31 +10:00
Andrew Tridgell 43eaf013ed AP_Baro: rename UAVCAN drivers to DroneCAN 2023-04-11 10:31:31 +10:00