Reserved Words/Pre-Defined Functions (int, motor) are displayed asblue text.
#ROBOTC FREE DOWNLOAD VEX CODE#
This "commented text" is not considered code and is ignored when the compiler generates byte-code to send to the robot controller.Comments are text in a program prefaced with a// or surrounded by a /* * /.Normal text is used for variable and function names that are user-defined and not recognized by the compiler as reserved words.Normal Text is displayed as black text.Set Digital Sensors so that only digl 12 is being used Set up the Motors and Sensors Set the Motors so that only Ports 2,3 and 9 are used. What it the purpose of the FUNCTION LIBRARY?.What is the purpose of the ROBOTC Debug window?.What is the purpose of the ROBOTC Editor Window?.Describe a scenario where a motor or sensor might not respond as you would predict.Items in Black will change to red when input is given.Items in red will automatically change their value.Power can be manually changed from -127 to 127.Errors – gives you an idea what is wrong with the code.Make sure that the Refresh is set to Continuous.This is used to check to see if all of the Inputs, Outputs and motors are working correctly.Three most commons Messages The VEX Cortex is not plugged into the computer The wrong Compiler Target is selected Power is turned off or the battery needs to be replaced Like before, have the students check the wiring.Good time to check to see if the motor is actually in the correct port on the VEX Cortex.For this Project ROBOTC has pre-programmed some Standard Model Configurations.Project Title: INPUTS AND OUTPUTS 3.1.1.Leave the Communication as Automatic Selection NOTE – Get your students in the habit of checking this every time they start a new project.Select the Platform Type so that it shows Natural Language (VEX Cortex).Setting the Platform and Communications method: Once the Template is Opened – Have the students SAVE AS the name of the assignment that they are working on.Open the PLTW Template Notice the File Path – If you are not in the VEX2 Folder take this time to find it. Getting Started… Opening the pltw template Other Parts Green LED Flashlight Motor Controller Battery Servo motors are a type of motor that can be directed to turn to face a specific direction, rather than just spin forward or backward.For 3-Wire Motor Ports (Ports 2-9 on the Cortex), a Motor Controller must be used in between the Microcontroller and the motor.The motor connects directly to 2-Wire Motor Ports (Ports 1 & 10 on the Cortex Microcontroller).The light sensor uses a photocell that allows your robot to detect and react to light.Device emits a high-frequency sound wave that alerts the robot to things in its path. Avoid obstacles and measure distances with the ultrasonic range finder.With the Quadrature Encoder's two output channels you can measure both the position and direction of rotation of a VEX shaft.With the Potentiometer you can determine both position and direction of rotation.Program your robot to follow a black line over a white surface.Functionality is pre-programmed in the VEX Microcontroller.Useful as a trigger in a variety of applications.Bendable sheet metal switch "arm" is very versatile.These switches are great for signaling when a robot arm has reached the top or bottom of its motion.Rugged bumpers allows triggering by large impacts.