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

Potential mathematics mistake #680

Closed
tchoopojcharoen opened this issue Jul 16, 2021 · 3 comments
Closed

Potential mathematics mistake #680

tchoopojcharoen opened this issue Jul 16, 2021 · 3 comments

Comments

@tchoopojcharoen
Copy link

double dFY_dP = (sr * tp * cpi * pitchVel + cr * tp * cpi * yawVel) * delta;

I think it should be

double dFY_dP = (-sr * cpi * cpi * pitchVel - cr * cpi * cpi * yawVel) * delta;
But I'm not 100% certain. This is based on the mapping between the angular velocity and the orientation that the author wrote in the code. I determine the nonlinear function and perform differentiation to find this particular part of the Jacobian.

@ayrton04
Copy link
Collaborator

See #591 and #592.

@tchoopojcharoen
Copy link
Author

After brief rework on my math, I've realized I made a calculation mistake by not applying the proper chain rules. It matched with the code now. Thank you so much for making times for this, and sorry for wasting your time. At least, I'm able to figure out the underlying model that you've been using. :)

@ayrton04
Copy link
Collaborator

Happy to help! Thanks for reviewing.

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

2 participants