View unanswered posts | View active topics It is currently Fri Sep 19, 2014 4:22 am






Reply to topic  [ 4 posts ] 
Beginner tutorials for FTC/NXT 
Author Message
Rookie
User avatar

Joined: Wed Jan 09, 2013 11:48 pm
Posts: 37
Location: Saint Paul, MN
Post Beginner tutorials for FTC/NXT
Here's a playlist on YouTube on working on for begging programmers for NXT bricks in RobotC, please send suggestions or questions! thanks :D

link: http://www.youtube.com/playlist?list=PL ... 3b_0RVANkx

_________________
Head Programmer FTC Team 6699, Tempest

Code:
<Life>
   Fun
</Life>


Mon Jul 22, 2013 6:53 pm
Profile WWW
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post Re: Beginner tutorials for FTC/NXT
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
Profile
Rookie
User avatar

Joined: Wed Jan 09, 2013 11:48 pm
Posts: 37
Location: Saint Paul, MN
Post 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

_________________
Head Programmer FTC Team 6699, Tempest

Code:
<Life>
   Fun
</Life>


Mon Jul 22, 2013 11:50 pm
Profile WWW
Expert
User avatar

Joined: Fri Nov 02, 2012 12:07 am
Posts: 164
Location: California, USA
Post Re: Beginner tutorials for FTC/NXT
Nice Series, cookthebook! :bigthumb: :bigthumb: :bigthumb: :bigthumb: :bigthumb:

_________________
string Robored = "Awesome"
~~Neil Balch~~


Tue Aug 06, 2013 10:59 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
cron



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.