Go to Post When we went to Wonderland people were like "So are you guys part of a rugby team or something?" and i was like "No...FIRST robotics! It beats rugby anyday" - Laura 1547 [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2011, 19:23
xinchi.he's Avatar
xinchi.he xinchi.he is offline
Registered User
AKA: Xinchi He
FRC #1209
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Tulsa,OK
Posts: 9
xinchi.he is an unknown quantity at this point
Send a message via MSN to xinchi.he
How to decide whether go left or right when the robot is at Y (bifurcate)

Hi,

Thanks to all firstly. I got our sensors worked last night. The robot could now track the lane well.

I tried to read the game manual, but end up with nothing.

Any one knows how to make the decision when the robot is at the bifurcate?

Is it determined by the reflective target?

Thanks to all again!
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2011, 19:32
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: How to decide whether go left or right when the robot is at Y (bifurcate)

Random # generator... If it is under a certain #, go left, else go right. Simple as that. If you wrote your code correctly you should be fine.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2011, 21:16
xinchi.he's Avatar
xinchi.he xinchi.he is offline
Registered User
AKA: Xinchi He
FRC #1209
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Tulsa,OK
Posts: 9
xinchi.he is an unknown quantity at this point
Send a message via MSN to xinchi.he
Re: How to decide whether go left or right when the robot is at Y (bifurcate)

Thank you!
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2011, 17:21
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Re: How to decide whether go left or right when the robot is at Y (bifurcate)

Quote:
Originally Posted by davidthefat View Post
Random # generator... If it is under a certain #, go left, else go right. Simple as that. If you wrote your code correctly you should be fine.
That's exactly how I did mine, though I have yet to test it. Glad to know that other teams are taking the lazy way out like me.
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2011, 18:20
Patrickwhite's Avatar
Patrickwhite Patrickwhite is offline
May the North be with you
FRC #0610 (The Coyotes)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 88
Patrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of light
Re: How to decide whether go left or right when the robot is at Y (bifurcate)

If you want to have more control, i.e. if your alliance for whatever reason would prefer the left/right grid to have more ubertubes, you can pick up the state of a DigitalInput from the driver station, or map it to a button toggle in disabledContinuous(), as examples. You could even have a physical switch on the robot if you wanted, if your drivers are more comfortable with that.
__________________
while(!going.isTough());
tough.exit();

What will we do tonight, Warfa?
The same thing we do every night, Patrick. Sit and wait for Electrical.
Reply With Quote
  #6   Spotlight this post!  
Unread 18-02-2011, 18:52
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: How to decide whether go left or right when the robot is at Y (bifurcate)

go left
__________________
Code:
class team2412(GP):
    def __init__(self):
        GP.__init__(self)
        self.coopertition = True
        self.info = {"name": "Robototes", "school": "Sammamish High School, Bellevue, WA"}
        assert self.kind_people == True
Reply With Quote
  #7   Spotlight this post!  
Unread 24-02-2011, 16:31
sarangmittal's Avatar
sarangmittal sarangmittal is offline
Registered User
FRC #1683 (Techno Titans)
Team Role: Programmer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Atlanta GA
Posts: 20
sarangmittal is an unknown quantity at this point
Re: How to decide whether go left or right when the robot is at Y (bifurcate)

Quote:
Originally Posted by Patrickwhite View Post
If you want to have more control, i.e. if your alliance for whatever reason would prefer the left/right grid to have more ubertubes, you can pick up the state of a DigitalInput from the driver station, or map it to a button toggle in disabledContinuous(), as examples. You could even have a physical switch on the robot if you wanted, if your drivers are more comfortable with that.
Yeah. Our team has a switch or a knob that we can use to determine which direction to go. After that, once the robot gets to the split, use a if-then statement. The switch acts like a DigitalInput with 2 booleans
Reply With Quote
  #8   Spotlight this post!  
Unread 24-02-2011, 19:53
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Re: How to decide whether go left or right when the robot is at Y (bifurcate)

Just a quick check, the tape at the competition is known to be directly under the left/right sensors if the middle follows the straight tape correctly, right?

We failed to ever get the robot turning because we couldn't mimic exactly how the competition angled their tape.
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye
Reply With Quote
  #9   Spotlight this post!  
Unread 28-02-2011, 19:21
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: How to decide whether go left or right when the robot is at Y (bifurcate)

Our team's robot will randomly choose because of how i messed up programming it.
__________________
Code:
class team2412(GP):
    def __init__(self):
        GP.__init__(self)
        self.coopertition = True
        self.info = {"name": "Robototes", "school": "Sammamish High School, Bellevue, WA"}
        assert self.kind_people == True
Reply With Quote
Reply


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 00:39.

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