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

Code is wrong? #6

Open
huazhusun opened this issue Oct 29, 2024 · 0 comments
Open

Code is wrong? #6

huazhusun opened this issue Oct 29, 2024 · 0 comments

Comments

@huazhusun
Copy link

Hey, I found something weird s the codes.
You set
LMxr = (alpha * LMx + beta * LMy + (1 - alpha) * LMx[2] / 2 - beta * LMy[2] / 2)
LMyr = (-beta * LMx + alpha * LMy + beta * LMx[2] / 2 + (1 - alpha) * LMy[2] / 2)

however, (1 - alpha) * LMx[2] / 2 - beta * LMy[2] / 2) and beta * LMx[2] / 2 + (1 - alpha) * LMy[2] / 2)
will be cleared in
dXnose = (LMxr[1] - LMxr[2] + LMxr[4] - LMxr[2]) / 2
dYnose = (LMyr[3] - LMyr[2] + LMyr[4] - LMyr[2]) / 2
.The result is totally same as
LMxr = (alpha * LMx + beta * LMy
LMyr = (-beta * LMx + alpha * LMy

so I think maybe threre may be some wrong when implement the code.

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