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

robot.cannonAbsoluteAngle is 90 off compared to robot.angle #10

Open
robwalch opened this issue Dec 2, 2012 · 2 comments
Open

robot.cannonAbsoluteAngle is 90 off compared to robot.angle #10

robwalch opened this issue Dec 2, 2012 · 2 comments

Comments

@robwalch
Copy link

robwalch commented Dec 2, 2012

Not sure if this is intentional...

If robot.angle is at 0 (facing up) and the canon has not been rotated (also facing up), then cannonAbsoluteAngle is 90.

@cezarsa
Copy link
Member

cezarsa commented Dec 2, 2012

Oops not intentional. But I guess we'll have to wait until the judgement is over to fix it. Thanks for reporting.

@alexanderzeillinger
Copy link

It's rather robot.angle that is off and should be shifted 90 degrees counterclockwise. The angles for x = -1 and y = 0 are:

robot.angle: 270
atan2: 0
robot.cannonAbsoluteAngle: 0

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

3 participants