|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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! |
|
#2
|
|||
|
|||
|
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.
|
|
#3
|
||||
|
||||
|
Re: How to decide whether go left or right when the robot is at Y (bifurcate)
Thank you!
|
|
#4
|
|||||
|
|||||
|
Re: How to decide whether go left or right when the robot is at Y (bifurcate)
Quote:
![]() |
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
||||
|
||||
|
Re: How to decide whether go left or right when the robot is at Y (bifurcate)
go left
|
|
#7
|
||||
|
||||
|
Re: How to decide whether go left or right when the robot is at Y (bifurcate)
Quote:
|
|
#8
|
|||||
|
|||||
|
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. |
|
#9
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|