NXC = Not eXactly C
Bricx Command Center is a tool available for programming the NXT using a "C"-like programming language. We spoke to a person named Nate who had used a similar environment to program the RXC (Yellow brick).
For MacOSX too - HERE.
Here is a sample program that starts a servo motor connected to port A to start running forward at 75% power for 4 seconds. Then the same server motor is told to rotate in reverse at 100% power for 3 seconds.
task main()
{
OnFwd(OUT_A, 75);
Wait(4000);
OnRev(OUT_A, 100);
Wait(3000);
}
Saturday, December 11, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment