Class Claw.Parameters
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.robot.subsystems.Claw.Parameters
- Enclosing interface:
- Claw
-
Field Summary
Modifier and TypeFieldDescriptioncom.qualcomm.robotcore.hardware.Servo
The servo that drives the claw, already instantiated and configuredfinal double
You already set this in the constructor and cannot set it again.final double
You already set this in the constructor and cannot set it again.final boolean
You already set this in the constructor and cannot set it again. -
Constructor Summary
ConstructorDescriptionParameters
(boolean present, double openPosition, double closePosition) Create a Parameters object and provide parameters that don't have default values. -
Method Summary
-
Field Details
-
present
public final boolean presentYou already set this in the constructor and cannot set it again. -
clawServo
public com.qualcomm.robotcore.hardware.Servo clawServoThe servo that drives the claw, already instantiated and configured -
openPosition
public final double openPositionYou already set this in the constructor and cannot set it again. -
closePosition
public final double closePositionYou already set this in the constructor and cannot set it again.
-
-
Constructor Details
-
Parameters
public Parameters(boolean present, double openPosition, double closePosition) Create a Parameters object and provide parameters that don't have default values.- Parameters:
present
- Is this subsystem installed on this robot?openPosition
- The servo position (between 0 and 1) that the claw is considered openclosePosition
- The servo position (between 0 and 1) that the claw is considered closed
-