public class RackNPinonLift extends Mechanism
init()
before being used.
This class also contains autonomous actions involving hanging.Modifier and Type | Field and Description |
---|---|
private com.qualcomm.robotcore.hardware.DcMotor |
leftRackMotor |
private com.qualcomm.robotcore.hardware.DcMotor |
rightRackMotor |
Constructor and Description |
---|
RackNPinonLift()
Default constructor for Acquirer.
|
RackNPinonLift(com.qualcomm.robotcore.eventloop.opmode.LinearOpMode opMode)
Overloaded constructor for Lift.
|
Modifier and Type | Method and Description |
---|---|
void |
init(com.qualcomm.robotcore.hardware.HardwareMap hwMap)
Initializes lift hardware.
|
void |
rackToPos(double power)
Sets power for rack motor based on encoder values.
|
void |
setRackPower(double power)
Sets power for rack motor.
|
private com.qualcomm.robotcore.hardware.DcMotor leftRackMotor
private com.qualcomm.robotcore.hardware.DcMotor rightRackMotor
public RackNPinonLift()
public RackNPinonLift(com.qualcomm.robotcore.eventloop.opmode.LinearOpMode opMode)
opMode
- the LinearOpMode that is currently running