Grade 12

Working with Motors - NXT Setup

Working with Motors

Working with Motors - Tetrix

Create a Program that Makes the NXT go Forward 1 Foot and Stop

You need to make a Robot Program that makes the robot you bulit go forward one foot and then stop.

Commenting Your Code

Commenting your code is very important. This is the part of writing the code that's in plain english. If someone looks at your code they can see what your code is meant to do.

Commenting Worksheet

Submit the Following to your instructor:

Program Name:
Submitted by:

Check off when you complete

Example of well-commented code

#pragma config(Sensor, S2,     lightSensor,         sensorLightActive)
#pragma config(Motor,  motorB,          ,              tmotorNormal, PIDControl)
#pragma config(Motor,  motorC,          ,              tmotorNormal, PIDControl)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

//                                InclinePlane                               //
//                                                                           //

RobotC Syntax / Hello World!

Hello World!