public class Marker extends Mechanism
init()
before being used.Modifier and Type | Field and Description |
---|---|
private com.qualcomm.robotcore.hardware.Servo |
marker |
private static double |
MARKER_LEFT_POS |
private static double |
MARKER_NEUTRAL_POS |
private static double |
MARKER_RIGHT_POS |
Constructor and Description |
---|
Marker()
Default constructor for Arm.
|
Marker(com.qualcomm.robotcore.eventloop.opmode.LinearOpMode opMode)
Overloaded constructor for Arm.
|
Modifier and Type | Method and Description |
---|---|
void |
init(com.qualcomm.robotcore.hardware.HardwareMap hwMap)
Initializes arm hardware.
|
void |
markerLeft()
Set the marker to the left position.
|
void |
markerNeutral()
Set the marker to the neutral position.
|
void |
markerRight()
Set the marker to the left position.
|
private static final double MARKER_LEFT_POS
private static final double MARKER_NEUTRAL_POS
private static final double MARKER_RIGHT_POS
private com.qualcomm.robotcore.hardware.Servo marker
public Marker()
public Marker(com.qualcomm.robotcore.eventloop.opmode.LinearOpMode opMode)
opMode
- the LinearOpMode that is currently runningpublic void init(com.qualcomm.robotcore.hardware.HardwareMap hwMap)
public void markerLeft()
public void markerRight()
public void markerNeutral()