


setservo(port8, 37) This snippet of code will set the servo on motor-port 8 to position 37. The default motor-port is port6 and the default position is 0 for setservo(). setservo() This snippet of code will set the servo on motor-port 6 to position 0 (center). setservo(servo, position) Parameters: servo, position Acceptable Motors for servo: MOTOR ports 2 through 9 (and your names for them given in Motors and Sensors Setup.) Valid Range Values for position: -127 to 127. Movement Functions: Set Servo Set a servo to a desired position. This will automatically set up the motor and sensor ports to match those of a default Recbot.

This snippet of code will set the robot type to recbot. You must manually set the motors and sensors in the 'Motors and Sensors Setup' menu. robottype() robottype(recbot) This snippet of code will set the robot type to none by default, skipping the setup process. swervebot - sets the motors and sensors to match a default Swervebot. robottype(type) Parameters: type Valid Robot Types for type: none - this will not set up any motors and sensors for you (this is the default.) recbot - sets the motors and sensors to match a default Recbot. Note that not including this command defaults to "robottype(none) " Also please note that this command should be the first thing in your "task main()". 1 Setup Functions: Robot Type Choose which robot you want to write a program for.
