Go to Post I would hate for you to get the impression that the Northeast is one big unending snowglobe during the winter months. - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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
  #15   Spotlight this post!  
Unread 30-03-2011, 23:08
Dacilndak's Avatar
Dacilndak Dacilndak is offline
Matt'); DROP TABLE Users; --
AKA: Matthew Haney
FRC #3729 (Red Knights)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Denver, Colorado
Posts: 12
Dacilndak is an unknown quantity at this point
Re: Last minute autonomous help

Quote:
Originally Posted by Robby Unruh View Post
Did any other team not use encoders/ultrasonic for their autonomous?

My team only had line sensors, we're counting on timers to do the rest of the work for us (arm).

And if so, how well did the timers work out for your team? Do you think we would have enough time to implement encoders on our robot in the pits?
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:

Light sensor values (L/C/R)-----------------------State to execute
000--------------------------------------------------move() - go forward until you see the line
010--------------------------------------------------move() - this is ideal, we're on the line
100--------------------------------------------------correctLeft() - move left to see the line
110--------------------------------------------------also correctLeft()
001 and 011----------------------------------------correctRight()
101--------------------------------------------------at the fork; correctLeft() or correctRight() based on a switch on the robot
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.
__________________
Team 3729 - Raiders - Programming Team Co-Captain
2011 Colorado Regional Semifinalist
2011 Colorado Regional Rookie All-Star Award
2011 Colorado Regional Highest Rookie Seed Award
Reply With Quote
 


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 13:03.

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