autonomous mode?

Hey for us intelligent programmers, how should we go about autonomous mode? If anybody can figure this out help is wanted.

FIRST posted some Sample PBasic code for line and object tracking. That should give some good ideas.