Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Last minute autonomous help (http://www.chiefdelphi.com/forums/showthread.php?t=92623)

Robby Unruh 31-03-2011 14:14

Re: Last minute autonomous help
 
Quote:

Originally Posted by Dacilndak (Post 1047672)
Our team is using 3 front-mounted light sensors with great success. No encoders, no ultrasonic, no timers.

We're using C++. Our autonomous program manages a state machine that gets input from the light sensors and decides what to do based on them. Our algorithm is as follows:

[snip]
111-------------------------------------------------placeTube()

After executing placeTube(), the program quits the state machine and retreats back several feet, then turns on the spot (~180 degrees, but it's not perfect since we don't have encoders or a gyro). Generally, getting the tube on the rack takes about ten seconds, and we're only driving the motors at 40% for drive and 60% for turn.

Is there a horizontal line at the end of the tape to let the robot know it needs to stop? We have it just going and going until there's nothing left, then it goes back a little bit to give room for the tube placement.

Just asking, because we're having our first (and only) regional next week, and we still haven't been able to test our autonomous. :rolleyes:

JosephC 31-03-2011 15:18

Re: Last minute autonomous help
 
Theres a strip at the end of each line thats about say... 3 inches wide.

So the line ends at a T

Robby Unruh 31-03-2011 15:43

Re: Last minute autonomous help
 
OK, thanks! I guess I'll have to change my code once I get back home.

Thanks for all your help.


All times are GMT -5. The time now is 13:02.

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