maths help wanted

Daft question, how are you presenting the orientation of the robots in the equation, degrees or radians?

I don't want to post this as I hate looking silly on the internet (oh no!) but the co-ordinates for the enemy robot that I'm getting are: 45.12,226.16 (If I'm wrong I blame the alcohol).
 
Last edited:
Daft question, how are you presenting the orientation of the robots in the equation, degrees or radians?

I don't want to post this as I hate looking silly on the internet (oh no!) but the co-ordinates for the enemy robot that I'm getting are: 45.12,226.16 (If I'm wrong I blame the alcohol).

i was using degrees.

I think i've found the problem with my code as well. the way i was doing things i actually needed to swap my use of sin and cos in two of the quadrants, and i was not doing that. i;ve completely rewritten the code to deal with the angles and it seems to be working now
 
I think i've found the problem with my code as well. the way i was doing things i actually needed to swap my use of sin and cos in two of the quadrants, and i was not doing that. i;ve completely rewritten the code to deal with the angles and it seems to be working now

Yes, because you're measuring angle in the wrong direction ;)
 
Back
Top Bottom