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

Thrust vector are not correctly drawn #5

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

drganjoo
Copy link

Thrust vectors being drawn seem to be incorrect as the one on the right (fr) should be:

V3D fr = quad->GetArmLength() / sqrtf(2) * quad->Attitude().Rotate_BtoI(V3F(1, 1, 0));

To test it out:

I just changed the color of front left motor to a solid red:

_glDraw->DrawArrow(pos + fl, pos + fl + down*cmd.desiredThrustsN[0]/maxThrust, V3F(1,0,0));			// front left

@arush
Copy link

arush commented Apr 23, 2020

I agree i found the same bug and fixed it myself before coming across this PR.

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

Successfully merging this pull request may close these issues.

2 participants