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() |
isDeployedclearSetpoint, enableBrakeMode, enableCoastMode, getMotionMagicSetpoint, getTimeout, moveByPercentOutput, stop, updateArbitraryFeedForwardpublic 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 RotatingSubsystempublic java.awt.geom.Point2D.Double getMotionMagicDestinationCoordinates()
getMotionMagicDestinationCoordinates in class BaseIntakepublic void setRotatorNeutralMode(NeutralMode mode)
setRotatorNeutralMode in class BaseIntakepublic java.awt.geom.Point2D.Double getIntakeCoordinates()
getIntakeCoordinates in class BaseIntakepublic void runIntake(double power,
boolean runningIn)
runIntake in class BaseIntakepercentOutput - The desired percent power for the rollers to run at [-1,
1]public void stopRollers()
stopRollers in class BaseIntakepublic void runIntakeUsingCurrent(int current)
runIntakeUsingCurrent in class BaseIntakecurrent - Negative for backwardspublic double getArbitraryFeedForwardAngleMultiplier()
RotatingSubsystempublic void sendDataToDashboard()
public void initDefaultCommand()
initDefaultCommand in class BaseIntakepublic double getAngleInDegrees()
getAngleInDegrees in class RotatingSubsystem