AP_WindVane: add define AP_AIRSPEED_ENABLED

This commit is contained in:
Josh Henderson 2021-11-01 04:12:35 -04:00 committed by Andrew Tridgell
parent 382d4639a0
commit 0e662bbf35
1 changed files with 2 additions and 0 deletions

View File

@ -17,8 +17,10 @@
void AP_WindVane_Airspeed::update_speed()
{
#if AP_AIRSPEED_ENABLED
const AP_Airspeed* airspeed = AP_Airspeed::get_singleton();
if (airspeed != nullptr) {
_frontend._speed_apparent_raw = airspeed->get_raw_airspeed();
}
#endif
}