public abstract class BaseIntake extends RotatingSubsystem
Constructor and Description |
---|
BaseIntake(TalonSRX rotatorTalon,
double arbitrary_feedforward_constant,
int forward_soft_limit,
int reverse_soft_limit,
boolean timeout,
int QUAD_ENCODER_MIN,
int QUAD_ENCODER_MAX,
int CONTINUOUS_CURRENT_LIMIT,
int PEAK_CURRENT_LIMIT,
int offsetFromEncoderZero) |
Modifier and Type | Method and Description |
---|---|
abstract java.awt.geom.Point2D.Double |
getIntakeCoordinates()
Returns the x, y coordinates of the top of the intake
|
abstract java.awt.geom.Point2D.Double |
getMotionMagicDestinationCoordinates()
Should return the setpoint coordinates for the motion magic on the base motor
|
abstract void |
initDefaultCommand() |
boolean |
isDeployed() |
abstract void |
runIntake(double power,
boolean runningIn)
Runs the intake at a given percent power
|
void |
runIntakeUsingCurrent(int current) |
abstract void |
setRotatorNeutralMode(NeutralMode mode) |
void |
stopRollers() |
clearSetpoint, enableBrakeMode, enableCoastMode, getAngleInDegrees, getMotionMagicSetpoint, getTimeout, moveByPercentOutput, setMotionMagicSetpointAngle, stop, updateArbitraryFeedForward
public BaseIntake(TalonSRX rotatorTalon, double arbitrary_feedforward_constant, int forward_soft_limit, int reverse_soft_limit, boolean timeout, int QUAD_ENCODER_MIN, int QUAD_ENCODER_MAX, int CONTINUOUS_CURRENT_LIMIT, int PEAK_CURRENT_LIMIT, int offsetFromEncoderZero)
public abstract void initDefaultCommand()
public abstract java.awt.geom.Point2D.Double getMotionMagicDestinationCoordinates()
public abstract void setRotatorNeutralMode(NeutralMode mode)
public void runIntakeUsingCurrent(int current)
public abstract java.awt.geom.Point2D.Double getIntakeCoordinates()
public abstract void runIntake(double power, boolean runningIn)
percentOutput
- The desired percent power for the rollers to run at [-1, 1]public boolean isDeployed()
public void stopRollers()