what is an OpMode for
An OpMode, which stands for "operational mode," is a computer program you write to customize and control your robot's behavior so it can perform tasks and score points during a match. You select the OpMode on your Driver Station device, and the Robot Controller executes it to make the robot run.
Depending on what you want the robot to do during the match, you will use different types of OpModes. For the autonomous period where the robot needs to run a strict, sequential set of instructions on its own, you will use a LinearOpMode. For the driver-controlled TeleOp period where you need to constantly read gamepad inputs and update the motors in a continuous loop, you will use a standard iterative OpMode.
Was this right?