Good eveningI've been trying to get the line following program with four rotations to work. I think there is something wrong with my logic. It makes sense to me.

Repeat until the left motor encoder is greater then 1440, 4 x 360 = 1440.

I've attach the code. Let me know if anyone can shed some light on this.

Thanks

PSI am using the new version of robotC graphical.

I believe my problem is similar to Rookie2014. The robot keeps running after the four revolutions. I would have thought that the repeat until loop would stop when the encoder passed 1440. You will notice I even reset the encoder before the loop.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum