I did not watch all the videos but I did skip through the autonomous one really fast. I have found several problems in your code. You had all the functions such as goForward, goBackward, turnLeft, turnRight etc that use time. You turned the motors ON, waited a number of msec and returned but you never turn the motors off. If you are calling goForward back to back, that's probably ok but then you raised or lowered your arms. In the mean time, your drive motors are still running. BTW, in the motor and sensor setup dialog, you can "reverse" a motor. So instead of doing 75% power on one wheel and -75% power on the other in order to go forward, you should set the LeftDrive motor to "reverse". That way, you will be using positive values on both motors when going forward. Also, at the end, you had compiler error. It's because the code should be:

Code:

if (SensorValue[TouchSensor] == 1)

TouchSensor is of type tSensors. You are interested in the value of the sensor, not the "ID" of the sensor.

Mon Jul 22, 2013 9:03 pm

cookthebook

Rookie

Joined: Wed Jan 09, 2013 11:48 pmPosts: 44Location: Saint Paul, MN

Re: Beginner tutorials for FTC/NXT

Yeah, I mentioned the motor stopping in the 3rd episode, and I fixed the bugs, I don't think I fixed the stopping in the autonomous code though, Ill probably mention that again, thanks

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