Commit Graph

8 Commits

Author SHA1 Message Date
Thomas Watson cd1118acb4 AP_Airspeed: 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
Peter Barker c88a53b662 AP_Airspeed: tidy AP_Airspeed includes, use AP_AIRSPEED_ENABLED properly 2023-07-18 11:03:07 +10:00
Randy Mackay 98310d861e AP_Airspeed: minor spelling fix 2023-06-27 21:12:20 +10:00
Peter Barker 89a1330801 AP_Airspeed: reuse airspeed backend contructor in more backends
... and clean out some unused includes
2023-04-12 14:30:12 +10:00
Andrew Tridgell 20436ef527 AP_Airspeed: text messages and more defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell 6912b0db9e AP_Airspeed: rename more variables, types and defines 2023-04-11 10:31:31 +10:00
Andrew Tridgell d2882c79de AP_Airspeed: change UAVCAN_ENABLED to DRONECAN_ENABLED 2023-04-11 10:31:31 +10:00
Andrew Tridgell a3d0f265b2 AP_Airspeed: rename UAVCAN drivers to DroneCAN 2023-04-11 10:31:31 +10:00