What variable type is "hello"?
String
What is an example of a method modifier?
Private, Public, Protected, Static
What does PID stand for?
Proportional, integral, derivative
What is the robot we used called?
Romi
What is a boolean?
true/false
What is a return type of a method if it doesn't return anything?
Void
What is an error?
Difference between setpoint and current value
What framework did we use to program the robot?
WPILib
What is the difference between int and double?
double can have decimals while int can't
What is a method?
A block of code that performs a specific task.
What does P term do?
It produces an output proportional to the current error.
What does % do?
Find the remainder
Can I initialize multiple variable of the same type in one line?
Yes
int x, y, z;
int x=10,y=20,z=30;
What is a static method?
Method belonging to an object
What is purpose of PID
To control a system so that it reaches and maintains a desired target
int i = 10;
i *= 3;
What is i now?
30
What does this.variableName reference to?
Refers to the global instance variable of the object
What happens when you have multiple return statements in one method?
Only one of them will get called
What does D term do
Looks at rate of change and slows down the output if necessary
Doing Supplier.get() will fetch the latest value of the supplier