|
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
|