mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-25 01:03:59 -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 _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
|
// Initialize the Wind Vane object and prepare it for use
|
||||||
void AP_WindVane::init(const AP_SerialManager& serial_manager)
|
void AP_WindVane::init(const AP_SerialManager& serial_manager)
|
||||||
{
|
{
|
||||||
|
@ -43,6 +43,9 @@ public:
|
|||||||
// return true if wind vane is enabled
|
// return true if wind vane is enabled
|
||||||
bool enabled() const;
|
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
|
// Initialize the Wind Vane object and prepare it for use
|
||||||
void init(const AP_SerialManager& serial_manager);
|
void init(const AP_SerialManager& serial_manager);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user