
Re: line follower swervebot problems
Sorry to hear that you're having trouble. If you can clarify a few things, I'll be able to offer up better suggestions.
Are you trying to run code written for the virtual robot on a real robot, and vice versa? If so, I'd recommend against that - we've kept the code between real and virtual as similar as possible, but there are still some differences, particularly with how real sensors vs. virtual sensors are set up.
For real robots, I would recommend starting with the sample program found by going to File > Open Sample Program > Line Follower > Triple Sensor Line Tracking.c
For virtual robots, I would recommend starting with the sample program found by going to File > Open Sample Program > Virtual Worlds > Line Follower > Line Track for Distance.c
If you're still experiencing issues on the real robot, I'd recommend testing each sensor individually. Using the Triple Sensor Line Tracking.c program, keep just one sensor plugged in at a time and watch the sensor values to see if they seem normal. I've seen a very small number of "leaky" sensors, that manage to bleed voltage into the ports neighboring it. This can usually be corrected by spacing out the sensors by a port or two, but you may also want to consider contacting VEX Robotics for additional troubleshooting and/or a replacement sensor.
FYI, for "real" robot problems, the ROBOTC for Cortex and PIC board is a better place to post:
viewforum.php?f=11