public class Arm extends Mechanism
init()
before being used.Modifier and Type | Field and Description |
---|---|
private com.qualcomm.robotcore.hardware.Servo |
arm |
private static double |
ARM_DOWN_POS |
private static double |
ARM_INIT_POS |
private static double |
ARM_UP_POS |
private com.qualcomm.robotcore.hardware.Servo |
sweeper |
private static double |
SWEEPER_LEFT_POS |
private static double |
SWEEPER_NEUTRAL_POS |
private static double |
SWEEPER_RIGHT_POS |
Constructor and Description |
---|
Arm()
Default constructor for Arm.
|
Arm(com.qualcomm.robotcore.eventloop.opmode.LinearOpMode opMode)
Overloaded constructor for Arm.
|
Modifier and Type | Method and Description |
---|---|
void |
armDown()
Set the arm to the down position
|
void |
armInit()
Set the arm to the init position.
|
void |
armUp()
Set the arm to the up position.
|
void |
init(com.qualcomm.robotcore.hardware.HardwareMap hwMap)
Initializes arm hardware.
|
void |
sweeperLeft()
Set the sweeper to the left position.
|
void |
sweeperNeutral()
Set the sweeper to the neutral position.
|
void |
sweeperRight()
Set the sweeper to the right position.
|
private static final double ARM_INIT_POS
private static final double ARM_UP_POS
private static final double ARM_DOWN_POS
private static final double SWEEPER_LEFT_POS
private static final double SWEEPER_NEUTRAL_POS
private static final double SWEEPER_RIGHT_POS
private com.qualcomm.robotcore.hardware.Servo arm
private com.qualcomm.robotcore.hardware.Servo sweeper
public Arm()
public Arm(com.qualcomm.robotcore.eventloop.opmode.LinearOpMode opMode)
opMode
- the LinearOpMode that is currently runningpublic void init(com.qualcomm.robotcore.hardware.HardwareMap hwMap)
public void armInit()
public void armUp()
public void armDown()
public void sweeperLeft()
public void sweeperNeutral()
public void sweeperRight()