public class Lift extends Mechanism
init()
before being used.
This class also contains autonomous actions involving the lift.Modifier and Type | Field and Description |
---|---|
private com.qualcomm.robotcore.hardware.DcMotor |
leftLift |
private com.qualcomm.robotcore.hardware.DcMotor |
rightLift |
Constructor and Description |
---|
Lift()
Default constructor for Acquirer.
|
Lift(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 |
liftToPos(double power)
Sets power for lift motor based on encoder values.
|
void |
setLiftPower(double power)
Sets power for lift motor.
|
private com.qualcomm.robotcore.hardware.DcMotor leftLift
private com.qualcomm.robotcore.hardware.DcMotor rightLift
public Lift()
public Lift(com.qualcomm.robotcore.eventloop.opmode.LinearOpMode opMode)
opMode
- the LinearOpMode that is currently running