Commit Graph

9 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
Andrew Tridgell 8fdf085e2f AP_Airspeed: use NEW_NOTHROW for new(std::nothrow) 2024-06-04 09:20:21 +10:00
Andrew Tridgell 44c5754e36 AP_Airspeed: increased timeout on DroneCAN airspeed data
the data is sent at 20Hz, which means a single lost packet with 10Hz
reading resulted in an unhealthy sensor
2023-08-11 10:33:36 +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 5188816274 AP_Airspeed: update header references 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