NEW
Font size
WorksheetsRobotC Review
Total questions: 25
Worksheet time: 22mins
What software do we use to create programs for our robots?
RobotC
Vex IQ
Lego Mindstorms
Python
How do you open a new template file for new programs?
RobotC/Open File/This Pc/S12345
RobotC/File/Open Sample Programs/Vex2/PLTW/PLTWtemplate.c
VexVR/Load File From Device
Which two settings are accurate for your PLATFORM TYPE?
Vex 2.0 Cortex and Natural Language PLTW
Vex 2.0 Cortex and Natural Language 2.0
Vex IQ and Natural Language PLTW
Vex IQ and Natural Language 2.0
In order to run your robot without the orange USB cord, what should the Vex Cortex Communication mode be set to?
VEXnet or USB
USB only
Competition (VEXnet)
Where is the COMMUNICATION MODE setting found in RobotC?
Click on "File"
Click on "Robot"
Click on "Edit"
Click on "View"
Which menu would you click on to add motors to your program?
Motor and Sensor Set-up
Firmware Download
Compile Program
Download to Robot
Which type of motor do we use in class?
Vex 269
Vex 393
Vex 393 High Speed Motor
Vex 393 Turbo Speed Motor
Which menu would you select to add a BUTTON to your program?
Motor and Sensor Set-up
Firmware Dowload
Compile Program
Download to Robot
What do these instructions tell the robot to do?
Move forward for 63 seconds
Move backwards for 1 second
Move forward for 1 second at half speed
Wait 1 second before moving forward 63 inches
What do these instructions tell the robot to do?
Move backwards for 63 seconds
Move backwards for 2 seconds at half speed
Turn in circles for for 2 seconds
Wait 2 seconds before moving backwards 63 inches
What do these instructions tell the robot to do?
Make a left swing turn
Make a left point turn
Make a right swing turn
Make a right point turn
What do these instructions tell the robot to do?
Make a left swing turn
Make a left point turn
Make a right swing turn
Make a right point turn
What color are the comments in RobotC?
red
black
blue
green
Some punctuation comes in pairs, like parentheses () and curly braces {}. What will happen if one of the pair are missing?
the robot will assume that it is there and continue running
the program will not compile and the programmer will see an error message
the program will skip the statement
the program will delete the paired punctuation that is not missing
How would you fix the error on line 2 in this program?
add “ { ” (open bracket)
add “ } “ (closed bracket)
line is not needed - delete line
add a ‘ ; ” at the end of the line
How would you fix the error on line 1 in this program?
add “ { ” (open bracket)
“task main” needs to be one word “taskmain”
add “ ) “ (closed parenthesis)
add a “ ; ” at the end of the line
How would you fix the error on line 7 in this program?
“stopMotor” needs to be “Stopmotor"
should be written as (63, leftMotor)
speed should be “127” instead of “63 “
There is no speed when stopping a motor.
What is NOT true about #pragma statements at the top of your program?
They set the power levels of the motors.
Their code is automatically generated by ROBOTC configuration wizard.
They tell the robot which sensor/motor is connected to which port.
If your robot is turning in circles, but your code indicates that it should be going forward, which option below will NOT fix the problem?
You can reverse a motor in Motor and Sensor Set-up
You can change the positive/negative signs in your code
You can switch the ports where your drive train motors are plugged in
You can turn one motor off and leave the other motor on
If you download your code and the robot doesn't move, but the green line does move down the page, what might fix the problem?
Click "Firmware Download"
Reverse a motor
Unplug the battery and plug it back in
Click "Fix Formatting"
What might be causing this error?
Wrong Platform Type
Wrong communication mode
Motors are named incorrectly
Capitalization error
Where should students save their RobotC programs?
On the desktop
Not necessary, because the programs auto save on the web
Student drive (look for s + lunch number)
In the same folder as the PLTWtemplate files
What is causing these errors?
Wrong platform type
Wrong communication mode
Capitalization errors
Missing semicolons
What is most likely causing these errors?
Missing semicolons
Wrong platform type
Wrong communication mode
Missing pragma statements at the top
