Font size
Worksheets3.1.1 Intro To VEX and ROBOTC
Total questions: 48
Worksheet time: 29mins
When using a joystick and not wire between it and controller you are in?
Autonomous mode
Tethered mode
Wifi mode (wireless)
The commode
Where do you type your instructions?
1
2
3
4
What is a Subsystem?
Industrial robots
components that provide the robot with the ability to interact with its environment. One example would be a gripper.
The off-road robot platform moves at about 5 mph
the specific component of the robot that includes the drivetrain, control system, and the manipulators.
What are Manipulators?
Coordinates all aspects of the robot.
A person that manipulates you and steals your money.
components that provide the robot with the ability to interact with its environment. One example would be a gripper.
A shady person.
What does a Control System do?
loads the programs
coordinates the programming software.
supports the robots arms and wheels
coordinates all aspects of the robot.
What are sensors?
the computer that filters the information collected from the sensors and responds by making decisions using logic.
devices that lose information every time
devices that collect input from the environment and provide information that the CPU can respond to.
allows the robot to perform desired tasks without human guidance.
what is Drivetrain?
a type of motor that is only able to move 150 degrees.
he robotics subsystem that provides the ability to move around the field.
the computer component that controls all of the robots systems.
a device for measuring or maintaining orientation, based on the principles of angular momentum.
What is the purpose of the line 'task main() followed by { }'?
It's a comment used to define the main scope
Sets up multitasking
Sets up a program's main task only
Sets up a program's main task and scope
What does this line of code do?
Assigns the vertical right joystick to the main motor
Assigns the horizontal right joystick to the motor port named 'mainMotor'
Assigns the vertical left joystick to the motor port named 'mainMotor'
Assigns the horizontal left joystick to the main motor
What do these lines of code do?
motors for ports 2 and 5 half power in reverse, motors for ports 3 and 4 half power, only while button 6-d is pressed
motors for ports 3 and 4 full power in reverse, motors for ports 2 and 5 full power, only if button 6-d is pressed
motors for ports 2 and 5 half power in reverse, motors for ports 3 and 4 half power, only if button 6-d is pressed
motors for ports 2 and 5 full power in reverse, motors for ports 3 and 4 full power, only when button 6-d is pressed
When you start a new program it is good practice to
Name your program using File/Save As
Configure Motor and Sensor Setup
Save your file in the proper directory
All of these statements are true
________ is used to temporarily "disable” code in a program without deleting it.
commenting out
deletion
brackets
highlighting
How many analog ports on the Cortex microcontroller?
6
8
10
12
How many digital ports on the Cortex microcontroller?
6
8
10
12
A motor can be reversed by_____________.
Standing on my head and looking at the motor upside down
changing the sign (+/-) of the speed in the program
Check "Reverse" in Motors & Setup
turn the motor with my LEFT hand instead of my right hand
Which battery condition allows the fastest motor rotation?
50% charged
75% charged
100% charged
charged to my credit card
What do '#Pragma config()' statements do?
They start the program
They do nothing
They configure settings which live in their own section of flash memory that is outside of your program code. They are available as soon as the microcontroller gets power, regardless where they are written in your code. This is important because sometimes they are needed before your program is executed.
Random lines of code
All of these are digital sensors except?
light sensor
shaft encoder
bump switch
ultrasonic range finder
What does a while loop do?
Allows a section of code to be repeated as long as a certain condition remains true.
Code that waits until you press a button.
Allows a section of code to be repeated over and over again.
Allows a section of code to be repeated as long as a certain condition remains false.
The pseudocode is:
1. Start Rmotor full speed
2. Start Lmotor full speed
3. _______________
4. Stop Rmotor
5. Stop Lmotor
What is the missing line of pseudocode?
Pseudocode:
1. When button is pressed
2. _________________________
3. Wait 3 seconds
4. Stop Lmotor
What is the missing line of pseudocode?
Imagine you compiled your code and there were NO errors, but your code didn't run on the robot. What would you do next?
Check that the motor and sensor ports in the set up match where my motors and sensors are plugged in on the Cortex.
Wait for your teacher to fix it, it's not your job.
Close my computer and put my head down.
Delete my code and start over.
A function in RobotC allows you to:
Use a sensor of your own design
Use an analog sensor as a digital sensor
Write a segment of code once, name it and then use it throughout the program
Write a segment of code once and then use it under a different name throughout the program
The potentiometer is:
An analog sensor that can rotate one full revolution in either direction
An analog sensor that can rotate 250 degrees in either direction
An analog sensor that can rotate a total of 360 degrees
An analog sensor that can rotate a total of 250 degrees
How many motor ports are there on the VEX Cortex?
12
8
10
6
Into which ports can you plug in the motor controller?
Ports 1 and 10
Ports 2 thru 5
Port 2 thru 9
Into the digital ports
What is the top speed value for the VEX EDR motors when programming?
2000
180
5000
127
