Class Robot24
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.robot.Robot24
Encapsulates all of the components that make up a robot. A simple way to centralize initialization in one place
(to avoid duplicated code across OpModes) and make it easier to work with multiple different robots, each of which is
defined by a
Robot24.Parameters
class. The Parameters also contain calibration values that tune certain fine
behaviors to each robot. An OpMode no longer needs to set up every individual motor and servo. It needs only to
create a robot and use the powerful and convenient methods provided by its subsystems.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Extra stuff that external stuff (like IMUCorrector) usesstatic class
-
Field Summary
Modifier and TypeFieldDescriptionfinal DoubleArm
final Claw
final RRMecanumDrive
final FriendlyIMU
final RotaryIntake
final com.qualcomm.robotcore.hardware.VoltageSensor
-
Constructor Summary
ConstructorDescriptionRobot24
(Robot24.Parameters parameters, com.qualcomm.robotcore.hardware.HardwareMap hardwareMap) Pass in an ElapsedTime to be used by subsystems. -
Method Summary
Modifier and TypeMethodDescriptionvoid
update()
Call this method in the loop portion of your OpMode.
-
Field Details
-
extendedParameters
-
claw
-
intake
-
imu
-
drive
-
arm
-
voltageSensor
public final com.qualcomm.robotcore.hardware.VoltageSensor voltageSensor
-
-
Constructor Details
-
Robot24
public Robot24(Robot24.Parameters parameters, com.qualcomm.robotcore.hardware.HardwareMap hardwareMap) Pass in an ElapsedTime to be used by subsystems. Useful for dependency injection. The other constructor creates a normal ElapsedTime.
-
-
Method Details
-
update
public void update()Call this method in the loop portion of your OpMode.
-