public class Intake extends BaseIntake
Modifier and Type | Field and Description |
---|---|
static double |
DISTANCE_FROM_ARM_ZERO |
static int |
INTAKE_ANGLE_DEPLOYED |
static int |
INTAKE_ANGLE_IN |
static double |
INTAKE_FIXED_LENGTH_IN_INCHES |
static double |
INTAKE_ROTATING_LENGTH_IN_INCHES |
static int |
INTAKE_RUNNING_CURRENT |
static double |
PICKUP_RUNNING_POWER |
static double |
RUNNING_POWER |
Constructor and Description |
---|
Intake() |
Modifier and Type | Method and Description |
---|---|
double |
getAngleInDegrees() |
double |
getArbitraryFeedForwardAngleMultiplier()
Gets the multiplier for updating the arbitrary feed forward based on angle and subsystem
|
java.awt.geom.Point2D.Double |
getIntakeCoordinates()
Returns the x, y coordinates of the top of the intake
|
java.awt.geom.Point2D.Double |
getMotionMagicDestinationCoordinates()
Should return the setpoint for the motion magic on the base motor
|
void |
initDefaultCommand() |
void |
runIntake(double power,
boolean runningIn)
Runs the intake at a given percent power.
|
void |
runIntakeUsingCurrent(int current) |
void |
sendDataToDashboard() |
void |
setMotionMagicSetpointAngle(double intakeAngle)
Should set the setpoint for the Motion Magic on the intake
|
void |
setRotatorNeutralMode(NeutralMode mode) |
void |
stopRollers() |
isDeployed
clearSetpoint, enableBrakeMode, enableCoastMode, getMotionMagicSetpoint, getTimeout, moveByPercentOutput, stop, updateArbitraryFeedForward
public static final double DISTANCE_FROM_ARM_ZERO
public static final int INTAKE_ANGLE_IN
public static final int INTAKE_ANGLE_DEPLOYED
public static final double INTAKE_FIXED_LENGTH_IN_INCHES
public static final double INTAKE_ROTATING_LENGTH_IN_INCHES
public static final int INTAKE_RUNNING_CURRENT
public static final double RUNNING_POWER
public static final double PICKUP_RUNNING_POWER
public void setMotionMagicSetpointAngle(double intakeAngle)
setMotionMagicSetpointAngle
in class RotatingSubsystem
public java.awt.geom.Point2D.Double getMotionMagicDestinationCoordinates()
getMotionMagicDestinationCoordinates
in class BaseIntake
public void setRotatorNeutralMode(NeutralMode mode)
setRotatorNeutralMode
in class BaseIntake
public java.awt.geom.Point2D.Double getIntakeCoordinates()
getIntakeCoordinates
in class BaseIntake
public void runIntake(double power, boolean runningIn)
runIntake
in class BaseIntake
percentOutput
- The desired percent power for the rollers to run at [-1,
1]public void stopRollers()
stopRollers
in class BaseIntake
public void runIntakeUsingCurrent(int current)
runIntakeUsingCurrent
in class BaseIntake
current
- Negative for backwardspublic double getArbitraryFeedForwardAngleMultiplier()
RotatingSubsystem
public void sendDataToDashboard()
public void initDefaultCommand()
initDefaultCommand
in class BaseIntake
public double getAngleInDegrees()
getAngleInDegrees
in class RotatingSubsystem