task main(){ motor[motorA] = 100;//running motor A on full power motor[motorB] = 100;//running motor A on full power motor[motorC] = 100;//running motor A on full power wait1Msec(1000)//take time running motor A, B, and C on full power for 1 second}//ends the program

_________________We need a Linux Version!

Thu Feb 12, 2009 5:57 pm

chadgeorge

Novice

Joined: Fri Oct 24, 2008 8:58 amPosts: 87

Re: Lego motors

FYI there are lots of samples in the sample code directory that use the NXT motors.

Also I've noticed alot of people are posting code with PIDControl turned on. I guess that's the default.My personal experience is that this causes more wackiness than its worth. At least start with it OFF then turn it back on when you need it.

I know the great RobotC folks probably spent alot of sweat, tears and blood getting those things tuned, but I haven't had a single instance yet where they actually worked reliably. But it could just be me...

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