mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_Windvane: set raw wind to zero if no speed sensor
This commit is contained in:
parent
2f69281040
commit
19dfbb19e9
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user