Java Basics
FRC Coding
PID
Swerve
Vision
100

This operator checks if a condition is NOT true.

!

100

What type of file is Elevator?

Subsystem

100

This happens if your P value is too high.

Oscillation/Jittering

100

What are the two motors on a swerve module?

Drive and Steer

100

Why did we use vision this season?

To align accurately with the branches on the reef because it needs precise alignment.

200

You call this to create a new object.

Constructor

200

What method runs once at the start of a command before any action is done?

initialize()

200

What are the three constants we give to MotionMagic to control our mechanisms?

Velocity, acceleration, jerk
200

Name 2 things that the robot uses to track odometry.

Gyroscope, wheel encoders, vision

200

Which axis do TX, TY, and TA refer to (in relation to the Limelight)?

TX = left/right, TY = up/down, TA = forward/backward

300

What is the difference between declaring and initializing a variable?

Declaring means stating its type and name and just saying it exists. Initializing assings the variable a value.

300

Name 2 libraries that we import code from.

PathPlannerLib, CTRE, WPILib, REV

300

What PID constant should you modify if the mechanism is taking a really long time to settle at its target position?

kD - combats oscillation, also reduces the time it takes for kI to reduce the steady state error

300

What do we create in RobotContainer to call commands in auto?

NamedCommands
300

What is the Limelight’s position to the AprilTag when TX = -30 degrees and TY = 5 degrees?

30 degrees to the left, 5 degrees above

400

What is the difference between a for and a while loop? 

A for loop runs for a specific number of iterations. A while loop runs until the condition is false. 

400

What is the difference between a SequentialCommandGroup and a ParallelCommandGroup?

Sequential - commands run one after another

Parallel - commands run at the same time

400

How is MotionMagic different from traditional motion profiles?

sets trajectory for us, super easy

400

What is the first thing that we tune for swerve PID and what does it mean?

kS - static velocity 

400
How is localization different than odometry?

Odometry is relative to the starting position; it builds up error over time. Localization corrects the error using external sensors like LL.

500

What is the difference between a field and a parameter?

A parameter is a variable passed into a method or constructor and exists only while the method runs, whereas a field is a variable that belongs to an object and exists as long as the object exists.

500

Why do we need addRequirements() in a command file?

It tells the compiler which subsystem the command uses so other commands can't use the same subsystem at the same time.

500

How can we use MotionMagic to combat external factors that affect the movement of our mechanisms?

use jerk (combats gravity, weight)

500

What is kinematics?

Convert the desired overall robot velocity into individual module speeds and angles or vice versa

500

Explain how we use PID control and Limelight to align with the reef. (Hint: think about which LL value we use?)

Correct the TX error proportionally using kP

M
e
n
u