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

Rover (sailboat), true wind if no windspeed sensor, bug fixed #17432

Merged
merged 2 commits into from May 16, 2021

Conversation

meholden
Copy link
Contributor

The calculation for true wind direction in the case where the boat does not have a wind speed sensor had a bug. It used the wrong variable (filtered not raw) and did not wrap the angle calculation. Because the raw direction was not calculated, the filter later in the code calculates 0 for true wind. I tested both the original and fixed versions on my boat with an analog wind vane and it works for me.

@IamPete1 IamPete1 self-assigned this May 13, 2021
@rmackay9 rmackay9 requested a review from IamPete1 May 13, 2021 23:10
@rmackay9
Copy link
Contributor

This looks like it is probably correct to me and may be a bug introduced as part of this recent PR #17139. I'll leave this for @IamPete1 to approve and merge.

Thanks!

@IamPete1
Copy link
Member

@meholden Looks correct to me, Thanks for the PR! Just need to update the commit message, they should start with the name of the library (or vehicle). E.G. AP_Windvane: true wind if no windspeed fixed

@meholden
Copy link
Contributor Author

@meholden Looks correct to me, Thanks for the PR! Just need to update the commit message, they should start with the name of the library (or vehicle). E.G. AP_Windvane: true wind if no windspeed fixed

I am bad with git but I did do this I think.

@IamPete1
Copy link
Member

@meholden thanks! you got the commit message right but also got some extra commits, I have fixed it for you. Should be good to merge once it get through the checks.

@IamPete1
Copy link
Member

I made the same mistake on speed, I have added a commit to fix that bug too.

@IamPete1 IamPete1 merged commit 19dfbb1 into ArduPilot:master May 16, 2021
@IamPete1
Copy link
Member

Merged, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants