Hi I've been trying to make a robot that solves a simple maze, but I recently notice that if the robot doesn't move straight, it creates a problem and falls over. I have tried syncing the motors using this(see attachment or program) but it seem that the robot is now not turning when it's required to. Without the synced motors command it turns perfectly fine and works well, but trying to keep the motors in sync was confusing to me. I'm begging you to help me sync the motors and have it solve my maze.

Once you set nSyncedMotors to synchAC and nSyncedTurnRatio to 100, motors A and C will stay synched together doing a turn for the rest of the program. If you want to make them go straight, you need to set nSyncedTurnRatio to 0. And, if you don't want them synced anymore, you can set nSyncedMotors to synchNone.

P.S. Helpful hint: If you put [_CODE] [_/CODE] tags (without the underscores) around your code in your post, it will preserve the formatting and make it much easier to read!

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