
Re: Linerunner evolving - trying to make the program more ro
Think about this section of code:
The variable lastSeen starts out at 1, so the only way this if statement will be true is when the robot sees white (and you set seeing to 0). Then, you increase count by one and set lastSeen to seeing (making it 0). After that, seeing must be -1 or less for the above if statement to be true, but you only ever set it to 0 or 1. You're on the right track, but I would suggest a rearrange of your code to something like the following (pseudo code):
_________________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/.