Package robot.subsystems
Class IntakeSubsystem
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
robot.subsystems.MotorSubsystem
robot.subsystems.IntakeSubsystem
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doublestatic final doubleFields inherited from class robot.subsystems.MotorSubsystem
backwardVoltage, forwardVoltage, motors -
Constructor Summary
ConstructorsConstructorDescriptionIntakeSubsystem(SmartMotorController angleMotor, SmartMotorController rollerMotor, CustomDutyCycleEncoder encoder) -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.wpilibj2.command.Commandc_extend()edu.wpi.first.wpilibj2.command.Commandc_gotoAngle(double angle, double wobbleDistance, double wobbleOffset) edu.wpi.first.wpilibj2.command.Commandc_intake()edu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandc_wobble()doublegetAngle()Methods inherited from class robot.subsystems.MotorSubsystem
c_backward, c_controlVoltage, c_DEBUG_tunePIDkG, c_forward, c_holdVoltage, c_stop, setMotorBrake, setVoltage, stopMethods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, idle, periodic, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Field Details
-
kP
public static final double kP- See Also:
-
kI
public static final double kI- See Also:
-
kD
public static final double kD- See Also:
-
kS
public static final double kS- See Also:
-
kV
public static final double kV- See Also:
-
kA
public static final double kA- See Also:
-
kG
public static final double kG- See Also:
-
EXTEND_ANGLE
public static final double EXTEND_ANGLE- See Also:
-
RETRACT_ANGLE
public static final double RETRACT_ANGLE- See Also:
-
HORIZONTAL
public static final double HORIZONTAL- See Also:
-
ENCODER_RATIO
public static final double ENCODER_RATIO- See Also:
-
MAX_VEL
public static final double MAX_VEL- See Also:
-
MAX_ACCEL
public static final double MAX_ACCEL- See Also:
-
WOBBLE_SPEED
public static final double WOBBLE_SPEED- See Also:
-
WOBBLE_DISTANCE
public static final double WOBBLE_DISTANCE
-
-
Constructor Details
-
IntakeSubsystem
public IntakeSubsystem(SmartMotorController angleMotor, SmartMotorController rollerMotor, CustomDutyCycleEncoder encoder)
-
-
Method Details
-
getAngle
public double getAngle() -
c_intake
public edu.wpi.first.wpilibj2.command.Command c_intake() -
c_wobble
public edu.wpi.first.wpilibj2.command.Command c_wobble() -
c_extend
public edu.wpi.first.wpilibj2.command.Command c_extend() -
c_retract
public edu.wpi.first.wpilibj2.command.Command c_retract() -
c_gotoAngle
public edu.wpi.first.wpilibj2.command.Command c_gotoAngle(double angle, double wobbleDistance, double wobbleOffset)
-