robot awarness

Hey guys I was wondering how I could make the robot know exactly where it is on the field. For example the robot is at the back the robot will know that and automatically align to the goal and/or adjust the speed of the flywheel automatically. I use robotc if that helps:D:)

Check out this thread:

It is everything you need to know about our team’s (x,y) position tracking.

That one is for H drives
how do i do it for a x drive

We have that too. I’ll have Pixel to post it soon.