Browse Source

AP_Windvane: set true to apparent if no speed sensor

zr-v5.1
Iampete1 4 years ago committed by Peter Barker
parent
commit
29534a7e2d
  1. 4
      libraries/AP_WindVane/AP_WindVane.cpp

4
libraries/AP_WindVane/AP_WindVane.cpp

@ -295,6 +295,10 @@ void AP_WindVane::update() @@ -295,6 +295,10 @@ void AP_WindVane::update()
// assume true wind has not changed, calculate the apparent wind direction and speed
update_apparent_wind_dir_from_true();
}
} else {
// only have direction, cant to true wind calcs, set true direction to apparent
_direction_true = _direction_apparent_raw + AP::ahrs().yaw;
_speed_true = 0.0f;
}
/*

Loading…
Cancel
Save