mirror of https://github.com/ArduPilot/ardupilot
AP_WindVane: add define AP_AIRSPEED_ENABLED
This commit is contained in:
parent
382d4639a0
commit
0e662bbf35
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue