
Re: Problems!!! Plz help us T.T
Well, you could put both of the measurements in one program and just have the robot wait for a button press in between them. Do you have to figure out the size in something like inches or centimeters? Or does the robot just have to show which one is bigger on the screen?
So, I'll give you the commands you need, and a general framework for how the program could go, but you get to figure out how to put the two parts together.
First, the commands
Your program could go something like:
1. Drive forward
2. Once it sees the outline of the circle, start measuring
3. Once it sees the other side of the outline, stop driving
4. Store the distance travelled from one side of the circle to the other
5. Wait for the orange button to be pressed on the NXT
6. Drive forward
7. Once it sees the outline of the circle, start measuring
8. Once it sees the other side of the outline, stop driving
9. Store the distance travelled from one side of this circle to the other side
10. Compare the distances travelled for the two circles and determine which one is bigger
11. Display which circle is bigger on the screen
_________________FTC Team 6100 Chariots of Fire - Programmer (2012-2013)
FTC Team 7468 Blue Chariots of Fire - Programmer (2013-2014)
FTC Team 7468 Blue Chariots of Fire - Mentor (2014-2015)
Check out our team website at
http://bluechariotsoffire.com/.