AP_Windvane: set raw wind to zero if no speed sensor

This commit is contained in:
Iampete1 2021-05-16 12:24:15 +01:00 committed by Peter Hall
parent 2f69281040
commit 19dfbb19e9

View File

@ -298,7 +298,7 @@ void AP_WindVane::update()
} else {
// only have direction, can't do true wind calcs, set true direction to apparent + heading
_direction_true_raw = wrap_PI(_direction_apparent_raw + AP::ahrs().yaw);
_speed_true = 0.0f;
_speed_true_raw = 0.0f;
}
/*