Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wind speed and direction preset doesn't work #423

Open
yuragri opened this issue Dec 6, 2024 · 0 comments
Open

Wind speed and direction preset doesn't work #423

yuragri opened this issue Dec 6, 2024 · 0 comments

Comments

@yuragri
Copy link

yuragri commented Dec 6, 2024

Math functions wrap_360 and atan2 are not defined.
EKF3_wind
Fix that worked for me, define these functions in /src/mavextra/mavextra.js:

window.atan2 = Math.atan2

window.wrap_360 = function (a) {
    let w = a % 360
    if (w < 0) w += 360
    return w
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant