Class DoubleArm.Parameters
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.robot.subsystems.DoubleArm.Parameters
- Enclosing interface:
- DoubleArm
-
Field Summary
Modifier and TypeFieldDescriptionPass in an AccelLimiter object that has already been instantiated with the correct parameters for your motor.double
How much extra space in inches to leave in front of the elevatorint
The lower limit of the elevator motor's range in inchesPass in a DigitalDevice object (an implementation of your choice) to represent a limit switch that is activated when the elevator reaches its minimum position (in encoder ticks!).com.qualcomm.robotcore.hardware.DcMotorEx
The elevator motor object, already grabbed from the HardwareMap (or pass in a MockDcMotorEx for testing)com.qualcomm.robotcore.hardware.DcMotorEx
double
The distance in inches from the back of the robot to the start of the elevator slides (the actual slides, not the motor)double
How many encoder ticks are traveled by the elevator motor per inch of elevator travelint
The upper limit of the elevator motor's range in inches, measured from the back of the robotPass in a DigitalDevice object (an implementation of your choice) to represent a limit switch that is activated when the elevator reaches its maximum position (in encoder ticks!).double
The maximum power to use while the elevator has tripped a limit and is returning to a safe position.int
The maximum velocity of the elevator motor in ticks per second.double
The maximum power to use while the pivot arm has tripped a limit and is returning to a safe position.int
The maximum velocity of the pivot motor in ticks per second.Pass in an AccelLimiter object that has already been instantiated with the correct parameters for your motor.int
The lower limit of the pivot motor's range in encoder ticksPass in a DigitalDevice object (an implementation of your choice) to represent a limit switch that is activated when the pivot arm reaches its minimum position (in encoder ticks!).com.qualcomm.robotcore.hardware.DcMotorEx
The pivot motor object, already grabbed from the HardwareMap (or pass in a MockDcMotorEx for testing)com.qualcomm.robotcore.hardware.DcMotorEx
double
How many encoder ticks are traveled by the pivot motor per degree of pivot arm rotationint
The upper limit of the pivot motor's range in encoder ticksPass in a DigitalDevice object (an implementation of your choice) to represent a limit switch that is activated when the pivot arm reaches its maximum position (in encoder ticks!).final boolean
You already set this in the constructor and cannot set it again.com.qualcomm.robotcore.util.ElapsedTime
UnitTests can pass in a MockElapsedTime. -
Constructor Summary
ConstructorDescriptionParameters
(boolean present) 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. -
pivotMotorLeft
public com.qualcomm.robotcore.hardware.DcMotorEx pivotMotorLeftThe pivot motor object, already grabbed from the HardwareMap (or pass in a MockDcMotorEx for testing) -
pivotMotorRight
public com.qualcomm.robotcore.hardware.DcMotorEx pivotMotorRight -
elevatorMotorLeft
public com.qualcomm.robotcore.hardware.DcMotorEx elevatorMotorLeftThe elevator motor object, already grabbed from the HardwareMap (or pass in a MockDcMotorEx for testing) -
elevatorMotorRight
public com.qualcomm.robotcore.hardware.DcMotorEx elevatorMotorRight -
pivotAccelLimiter
Pass in an AccelLimiter object that has already been instantiated with the correct parameters for your motor. -
pivotTicksPerDegree
public double pivotTicksPerDegreeHow many encoder ticks are traveled by the pivot motor per degree of pivot arm rotation -
pivotUpperLimit
public int pivotUpperLimitThe upper limit of the pivot motor's range in encoder ticks -
pivotLowerLimit
public int pivotLowerLimitThe lower limit of the pivot motor's range in encoder ticks -
pivotUpperLimitSwitch
Pass in a DigitalDevice object (an implementation of your choice) to represent a limit switch that is activated when the pivot arm reaches its maximum position (in encoder ticks!). -
pivotLowerLimitSwitch
Pass in a DigitalDevice object (an implementation of your choice) to represent a limit switch that is activated when the pivot arm reaches its minimum position (in encoder ticks!). -
maxPivotRecoveryPower
public double maxPivotRecoveryPowerThe maximum power to use while the pivot arm has tripped a limit and is returning to a safe position. This is important because acceleration control is not applied at this stage, so a large value here will cause jolts. -
maxPivotVelocity
public int maxPivotVelocityThe maximum velocity of the pivot motor in ticks per second. -
elevatorAccelLimiter
Pass in an AccelLimiter object that has already been instantiated with the correct parameters for your motor. -
elevatorTicksPerInch
public double elevatorTicksPerInchHow many encoder ticks are traveled by the elevator motor per inch of elevator travel -
elevatorLimitBuffer
public double elevatorLimitBufferHow much extra space in inches to leave in front of the elevator -
elevatorOffsetLength
public double elevatorOffsetLengthThe distance in inches from the back of the robot to the start of the elevator slides (the actual slides, not the motor) -
elevatorUpperLimit
public int elevatorUpperLimitThe upper limit of the elevator motor's range in inches, measured from the back of the robot -
elevatorLowerLimit
public int elevatorLowerLimitThe lower limit of the elevator motor's range in inches -
elevatorUpperLimitSwitch
Pass in a DigitalDevice object (an implementation of your choice) to represent a limit switch that is activated when the elevator reaches its maximum position (in encoder ticks!). -
elevatorLowerLimitSwitch
Pass in a DigitalDevice object (an implementation of your choice) to represent a limit switch that is activated when the elevator reaches its minimum position (in encoder ticks!). -
maxElevatorRecoveryPower
public double maxElevatorRecoveryPowerThe maximum power to use while the elevator has tripped a limit and is returning to a safe position. This is important because acceleration control is not applied at this stage, so a large value here will cause jolts. -
maxElevatorVelocity
public int maxElevatorVelocityThe maximum velocity of the elevator motor in ticks per second. -
stopwatch
public com.qualcomm.robotcore.util.ElapsedTime stopwatchUnitTests can pass in a MockElapsedTime.
-
-
Constructor Details
-
Parameters
public Parameters(boolean present) Create a Parameters object and provide parameters that don't have default values.- Parameters:
present
- Is this subsystem installed on this robot?
-