I want the claw to open when I press a button. How do i put this in my code?
FTC Code

Quiz
•
Instructional Technology
•
9th Grade
•
Medium
Jessica Holman
Used 3+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if(gamepad1.a){
claw.setPosition(.5);}
else{
claw.setPosition(0);}
claw.setPosition(gamepad1.a);
claw.setPower(gamepad1.a);
if(gamepad1.a){
claw.setPower(1);}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following, what is motorLeft_?
if(gamepad1.y){
motorLeft_.setPower(power_motors);
The variable name that matches the name you assigned in the robot configuration
A motor in our gobilda kits is manufactured name is motorLeft_
A servo for the left side of the claw
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assuming that positive power_motors makes the robot drive forward
What happens if I press a?
The robot will drive in reverse
The robot will turn to the left
The robot will turn to the right
The robot will drive forward
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Assuming that positive power_motors makes the robot drive forward
What happens if I press y for a second and then let go?
The robot will drive in reverse
The robot will drive forward and then backwards
The robot will drive forward and will not stop unless setPower(0) is somewhere else in the code
The robot will drive forward and then stop
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if I press button b?
The robot will turn left
The robot will turn right
The robot will go in reverse
The robot will strafe left
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can I make the robot turn to the right?
Press the left bumper
Press the right bumper
Press x
Press both bumpers at the same time
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this piece of code do?
Configures the motors
Declares the motors
initializes the power of the motors
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Introducción a la Robótica

Quiz
•
9th - 12th Grade
15 questions
Car Companies of the world (1.1 update)

Quiz
•
KG - University
15 questions
REPASO DE CONTENIDOS

Quiz
•
1st - 12th Grade
12 questions
Diagnostico Secundaria y prepa

Quiz
•
8th - 9th Grade
20 questions
Core Power Tools

Quiz
•
9th - 12th Grade
15 questions
Digital Citizenship

Quiz
•
5th - 12th Grade
15 questions
MEKATRONIK TINGKATAN 3 RBT

Quiz
•
9th Grade
16 questions
Quiz about Microsoft PowerPoint 2016

Quiz
•
9th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade