Unofficial response: Integrated Encoders for RobotC

suferboy217,

I could be wrong, but I think you simply need to use a LESS THAN sign instead of a GREATER THAN sign. You are currently telling the motors to run only when they are greater than 3000. They aren’t even going to get to 3000 if they don’t run.

You want them to run UNTIL they get to 3000…in other words

while (nMotorEncoder[rightbw] < 3000)