NEW
Font size
WorksheetsFTC Code
Total questions: 17
Worksheet time: 9mins
I want the claw to open when I press a button. How do i put this in my code?
if(gamepad1.a){
claw.setPosition(.5);}
else{
claw.setPosition(0);}
claw.setPosition(gamepad1.a);
claw.setPower(gamepad1.a);
if(gamepad1.a){
claw.setPower(1);}
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
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
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
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
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
What does this piece of code do?
Configures the motors
Declares the motors
initializes the power of the motors
The name in " " must match what?
The name that is entered into the configuration file
The port that the motor is plugged into
The location on the robot for where the motor is mounted
The type of motor it is.
If I program the left motor to set power to left_stick_y. What power will that motor receive if the left stick is pushed all the way forward?
The power of that motor will be set to 1
The power of that motor will be set to -1
The power of that motor will be set to 100
The power of that motor will be set to -100
If I program the left motor to set power to left_stick_y. What power will be the set power of that motor if I push the stick all the way down?
The power of that motor will be set to 1
The power of that motor will be set to -1
The power of that motor will be set to 100
The power of that motor will be set to -100
If I program the left motor to set power to left_stick_y. What will happen if the left stick is at resting position?
The power of that motor will be set to 0
The power of that motor will be set to 1
The power of that motor will be set to -1
The power of that motor will be set to .5
If your robot is slightly drifting due to mechanical error, what should you do?
change the code to correct the mechanical issue
correct the mechanical issue DO NOT TOUCH your code
What does Telemetry do?
Displays a message on the DS
Command needed to start the program
Stores comments for you in your code
Command needed to drive forward
In Java what character goes at the end of every line?
;
.
,
:
What is the first 30 seconds of the match called?
Autonomous Mode
Teleop Mode
End Game
Insane Mode
Where do you find your auto mode if you want to test it?
In the ftc driver station app on the driver hub on the left side of the programs
In the ftc driver station app on the driver hub on the right side of the programs
In the ftc driver station on the control hub
In the ftc driver station, press a on the controller
A servo when it is set position goes through positions from ____ to _____
0 to 1
-1 to 1
-.5 to .5
-100 to 100
