mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_Airspeed: use floats for get/set output scaled
This commit is contained in:
parent
14b9e99020
commit
89c0a8ea04
@ -687,7 +687,7 @@ bool AP_Airspeed::use(uint8_t i) const
|
||||
return false;
|
||||
}
|
||||
#ifndef HAL_BUILD_AP_PERIPH
|
||||
if (param[i].use == 2 && SRV_Channels::get_output_scaled(SRV_Channel::k_throttle) != 0) {
|
||||
if (param[i].use == 2 && !is_zero(SRV_Channels::get_output_scaled(SRV_Channel::k_throttle))) {
|
||||
// special case for gliders with airspeed sensors behind the
|
||||
// propeller. Allow airspeed to be disabled when throttle is
|
||||
// running
|
||||
|
Loading…
Reference in New Issue
Block a user