mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
AP_WindVane: add wind_speed_enabled method
This commit is contained in:
parent
27286b659b
commit
3dd0ebaf0d
@ -179,6 +179,12 @@ bool AP_WindVane::enabled() const
|
||||
return _direction_type != WINDVANE_NONE;
|
||||
}
|
||||
|
||||
// return true if wind speed is enabled
|
||||
bool AP_WindVane::wind_speed_enabled() const
|
||||
{
|
||||
return (_speed_sensor_type != WINDSPEED_NONE);
|
||||
}
|
||||
|
||||
// Initialize the Wind Vane object and prepare it for use
|
||||
void AP_WindVane::init(const AP_SerialManager& serial_manager)
|
||||
{
|
||||
|
@ -43,6 +43,9 @@ public:
|
||||
// return true if wind vane is enabled
|
||||
bool enabled() const;
|
||||
|
||||
// return true if wind speed is enabled
|
||||
bool wind_speed_enabled() const;
|
||||
|
||||
// Initialize the Wind Vane object and prepare it for use
|
||||
void init(const AP_SerialManager& serial_manager);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user