Class PixelArm.Parameters
java.lang.Object
org.firstinspires.ftc.teamcode.fy23.robot.subsystems.PixelArm.Parameters
- Enclosing interface:
- PixelArm
-
Field Summary
Modifier and TypeFieldDescriptionPass in an AccelLimiter object that has already been instantiated with the correct parameters for your motor.int
The lower limit of the elevator 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 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)double
How many encoder ticks are traveled by the elevator motor per degree of elevator travelint
The upper limit of the elevator 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 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)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. -
pivotMotor
public com.qualcomm.robotcore.hardware.DcMotorEx pivotMotorThe pivot motor object, already grabbed from the HardwareMap (or pass in a MockDcMotorEx for testing) -
elevatorMotor
public com.qualcomm.robotcore.hardware.DcMotorEx elevatorMotorThe elevator motor object, already grabbed from the HardwareMap (or pass in a MockDcMotorEx for testing) -
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. -
elevatorTicksPerMillimeter
public double elevatorTicksPerMillimeterHow many encoder ticks are traveled by the elevator motor per degree of elevator travel -
elevatorUpperLimit
public int elevatorUpperLimitThe upper limit of the elevator motor's range in encoder ticks -
elevatorLowerLimit
public int elevatorLowerLimitThe lower limit of the elevator motor's range in encoder ticks -
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?
-