-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,27 @@ | ||
package frc.robot.robotcomponents; | ||
|
||
import frc.robot.Constants; | ||
import frc.robot.Robot; | ||
import frc.robot.auton.AutonIntake; | ||
|
||
public class Intake { | ||
|
||
public static void autoIntake() { | ||
Robot.getTeleopActionRunner().removeActionsOfType(AutonIntake.class); | ||
Robot.getTeleopActionRunner().addActionToRun(new AutonIntake()); | ||
} | ||
|
||
public static void startFloorIntake() { | ||
// Robot.motors.getIntake().set(Constants.INTAKE_SPEED); | ||
Robot.motors.getIntake().set(Constants.INTAKE_SPEED); | ||
} | ||
|
||
/* This will spin the motor backwards in an attempt to eject a stuck note*/ | ||
public static void backtrack() { | ||
// Robot.motors.getIntake().set(Constants.MOTOR_BACKTRACK_SPEED_PERCENT); | ||
Robot.motors.getIntake().set(Constants.MOTOR_BACKTRACK_SPEED_PERCENT); | ||
} | ||
|
||
public static void stopFloorIntake() { | ||
// Robot.motors.getIntake().stopMotor(); | ||
Robot.getTeleopActionRunner().removeActionsOfType(AutonIntake.class); | ||
Robot.motors.getIntake().stopMotor(); | ||
} | ||
} |