public class Acquirer extends Mechanism
init()
before being used.
This class also contains autonomous actions involving the acquirer.Modifier and Type | Field and Description |
---|---|
private com.qualcomm.robotcore.hardware.Servo |
acquirerFloor |
private com.qualcomm.robotcore.hardware.CRServo |
leftIntakeMotor |
private com.qualcomm.robotcore.hardware.DcMotor |
linearSlide |
private com.qualcomm.robotcore.hardware.CRServo |
rightIntakeMotor |
private com.qualcomm.robotcore.hardware.DcMotor |
rotationBack |
private com.qualcomm.robotcore.hardware.DcMotor |
rotationForward |
private static double |
SERVO_CENTER_POS |
private static double |
SERVO_INIT_POS |
Constructor and Description |
---|
Acquirer()
Default constructor for Acquirer.
|
Acquirer(com.qualcomm.robotcore.eventloop.opmode.LinearOpMode opMode)
Overloaded constructor for Acquirer.
|
Modifier and Type | Method and Description |
---|---|
void |
init(com.qualcomm.robotcore.hardware.HardwareMap hwMap)
Initializes acquirer hardware.
|
void |
setIntakePower(double power)
Sets power for intake motor.
|
void |
setLinearSlidePower(double power)
Sets power for linear slides motors.
|
void |
setRotationPower(double power)
Sets power for rotation motors.
|
private static final double SERVO_INIT_POS
private static final double SERVO_CENTER_POS
private com.qualcomm.robotcore.hardware.DcMotor rotationBack
private com.qualcomm.robotcore.hardware.DcMotor rotationForward
private com.qualcomm.robotcore.hardware.DcMotor linearSlide
private com.qualcomm.robotcore.hardware.CRServo rightIntakeMotor
private com.qualcomm.robotcore.hardware.CRServo leftIntakeMotor
private com.qualcomm.robotcore.hardware.Servo acquirerFloor
public Acquirer()
public Acquirer(com.qualcomm.robotcore.eventloop.opmode.LinearOpMode opMode)
opMode
- the LinearOpMode that is currently runningpublic void init(com.qualcomm.robotcore.hardware.HardwareMap hwMap)
public void setIntakePower(double power)
power
- Motor power with range of (-1 to 1)public void setRotationPower(double power)
power
- Motor power with range of (-1 to 1)public void setLinearSlidePower(double power)
power
- Motor power with range of (-1 to 1)