-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
the wind static barometric pressure correction #11235
Labels
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is still an issue. |
@CarlOlsson thanks for mentioning this, I will fix it today. |
@int32cn Thanks for raising this! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At EFK2_main.cpp run function, the wind static barometric pressure correction is calculated as following:
const float pstatic_err = 0.5f * airdata.rho *
(K_pstatic_coef_x * x_v2) + (_K_pstatic_coef_y.get() * y_v2) + (_K_pstatic_coef_z.get() * z_v2);
And according the air static barometric pressure formula,P = 0.5 * ro * V ^2;
So I 'm wondering here maybe missing a brace, the code above should be as the following:
const float pstatic_err = 0.5f * airdata.rho *
( (K_pstatic_coef_x * x_v2) + (_K_pstatic_coef_y.get() * y_v2) + (_K_pstatic_coef_z.get() * z_v2));
The text was updated successfully, but these errors were encountered: