Go to Post This is an Internet forum- if you want to relax, sit next to a pool and sun bathe. However, the rest of us will have a mature discussions and debates on the CD forums. - MikeDubreuil [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:50.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi