Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
40 Cards in this Set
- Front
- Back
What is code? |
The text given to the robot that tells it what to do. |
|
Is task main the same as task main in RobotC? |
No, punctuation and capitalization matter. |
|
What does it mean when a word appears in color when typed in RobotC? |
RobotC recognizes that command, red & blue: a command the robot understands, green: comments, black: robot doesn't understand |
|
Give an example of a simple statement. |
wait(5); |
|
After a simple statement has been run, what statement does RobotC run next? |
The line under it, reading order. |
|
What happens when a program runs out of statements to run? |
The robot stops. |
|
How does RobotC know where one statement ends and the next begin? |
; |
|
What purpose do tabs, spaces, and line breaks serve in RobotC? |
To help organize it for the programmer |
|
Identify the paired punctuation in the command: motor[port2] = 127; |
port2 |
|
What is the function of the punctuation pair you identified? |
To show which motor port is activated from the program. |
|
What is the difference between a simple statement and a control statement? |
The control statement affects the order that the simple statements run, skip, or repeat. |
|
What special symbols mark a single-line comment? |
// |
|
What special symbols mark a multi-line comment? |
forward slash or /* |
|
Describe four of the Natural Language commands found in the Function Library. |
Movement, wait, until, and special. |
|
What information can be found under the Help Menu? |
Information that will help you program, code, and learn about RobotC. |
|
What information is stored in the Motors and Sensors Setup Menu? |
Which ports the motors and sensors are in and their names. |
|
Why is it important for the Motors and Sensors Setup and the Electrical Engineering Schematic to match? |
So the program will run and do what you want it to do. |
|
Steps of writing a program |
1. New file 2. Motor sensor setup 3. Usb only and natural language 4. Write program 5. Connect to computer 6. Turn on battery 7. Compile and download 8. Run program |
|
Mechanical engineer: |
Builds the robot structure |
|
Mechanical engineer: |
Builds the robot structure |
|
Electrical engineer: |
Wire the motors and sensors to the cortex. |
|
Computer engineer: |
Writes the code. |
|
Closed loop system |
A system that monitors itself and changes the output based on what it sees, provides feedback |
|
Closed loop system |
A system that monitors itself and changes the output based on what it sees, provides feedback |
|
Open loop system |
A system that has one output and sticks to that no matter what, provides no feedback |
|
Closed loop system |
A system that monitors itself and changes the output based on what it sees, provides feedback |
|
Open loop system |
A system that has one output and sticks to that no matter what, provides no feedback |
|
Digital switch / sensor |
Has only two inputs and outputs, it's either on or off, examples are the bump switch and limitawitch |
|
Closed loop system |
A system that monitors itself and changes the output based on what it sees, provides feedback |
|
Open loop system |
A system that has one output and sticks to that no matter what, provides no feedback |
|
Digital switch / sensor |
Has only two inputs and outputs, it's either on or off, examples are the bump switch and limitawitch |
|
Analog switch / sensor |
Has varied inputs that change the outputs |
|
Cortex |
The brain of the robot or computer |
|
Closed loop system |
A system that monitors itself and changes the output based on what it sees, provides feedback |
|
Open loop system |
A system that has one output and sticks to that no matter what, provides no feedback |
|
Digital switch / sensor |
Has only two inputs and outputs, it's either on or off, examples are the bump switch and limitawitch |
|
Analog switch / sensor |
Has varied inputs that change the outputs |
|
Cortex |
The brain of the robot or computer |
|
1st generation robot |
A robot that performs simple tasks |
|
2nd generation robot |
Robots that use sensors to perform complex tasks |