View Single Post
  #1   Spotlight this post!  
Unread 17-02-2011, 08:14
Daniel Daniel is offline
Daniel Katanski
#0240
Team Role: Mentor
 
Join Date: Feb 2004
Location: Monroe, MI
Posts: 32
Daniel is on a distinguished road
Starting Position from the DriverStation class

The folowing line should give you the robot starting location:

DriverStation ds; // define the drivers station object
int position = ds.getLocation(); // get the starting position

But I can not find what values to expect to be returned.

In test situations it returns -48. I would expect something like 1, 2, or 3 for left, center or right.

From this I hope to automatically determine which position the bot is in to let the autonomous adjust accordingly.

Does anyone know what this does?

Daniel