|
Re: I hate Autonomous programming! Why is it so sporadic?
Have you checked the calibration on the photoreceptor? We've found them to be quite finicky, especially when you move to a new surface (i.e. some carpets are more reflective than others, and the sensors need retuning).
Try getting the robot up on blocks and letting it run, blocking and unblocking the sensors with your hand.
I don't see anything particularly wrong with your program itself - the error is probably coming from other sources.
__________________
while(!going.isTough());
tough.exit();
What will we do tonight, Warfa?
The same thing we do every night, Patrick. Sit and wait for Electrical.
|