public class Intake
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Intake.Mode |
| Modifier and Type | Field and Description |
|---|---|
com.qualcomm.robotcore.hardware.DcMotorEx |
motor |
Intake.Mode |
state |
| Constructor and Description |
|---|
Intake(DeviceManager deviceManager)
Constructs an
Intake object given
the robot's device manager |
| Modifier and Type | Method and Description |
|---|---|
void |
in()
Intakes rings
|
void |
out()
Outtakes rings
|
void |
run(Intake.Mode mode)
Runs the intake motors at certain power levels
depending on the intake's mode
|
void |
stop()
Stops running the intake
|
public com.qualcomm.robotcore.hardware.DcMotorEx motor
public Intake.Mode state
public Intake(DeviceManager deviceManager)
Intake object given
the robot's device managerdeviceManager - the robot's device managerpublic void run(Intake.Mode mode)
mode - the intake's current run modepublic void in()
public void out()
public void stop()