6 Useful subs for NXC Programming

These subs are designed to work with the "PenBot" Design where the robot motors and C for left and B for right. It would be useful to put these subs into a separate file and use the #include command to import these into your programming. Ignore the line numbers in these examples.

1. Forward with synchronized motors by Degree Rotation.



2. Reverse with synchronized motors by Degree Rotation.



3. Right Point turn 90 degrees.



4. Left Point turn 90 degrees.



5. Right Point Turn where programmer defines the number of degrees the wheels turn.



6. Left Point Turn where programmer defines the number of degrees the wheels turn.



Email Mr.Michaud

Copyright ©2011 Mr. Michaud.