public class Tape extends Mechanism
init() before being used.
This class also contains autonomous actions involving the tape.| Modifier and Type | Field and Description |
|---|---|
private com.qualcomm.robotcore.hardware.CRServo |
leftTape |
private com.qualcomm.robotcore.hardware.DigitalChannel |
limitSwitch |
private com.qualcomm.robotcore.hardware.CRServo |
rightTape |
private com.qualcomm.robotcore.hardware.DcMotor |
winch |
| Constructor and Description |
|---|
Tape()
Default constructor for Tape.
|
Tape(com.qualcomm.robotcore.eventloop.opmode.LinearOpMode opMode)
Overloaded constructor for Tape.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(com.qualcomm.robotcore.hardware.HardwareMap hwMap)
Initializes lift hardware.
|
void |
liftTapePos(double power)
Sets power for tape motor based on encoder values.
|
void |
setTapePower(double power)
Sets power for tape motor.
|
private com.qualcomm.robotcore.hardware.CRServo leftTape
private com.qualcomm.robotcore.hardware.CRServo rightTape
private com.qualcomm.robotcore.hardware.DcMotor winch
private com.qualcomm.robotcore.hardware.DigitalChannel limitSwitch
public Tape()
public Tape(com.qualcomm.robotcore.eventloop.opmode.LinearOpMode opMode)
opMode - the LinearOpMode that is currently running