public class HardwareSlide extends Mechanism
| Modifier and Type | Field and Description |
|---|---|
Drivetrain |
drivetrain
Instance variable containing robot's drivetrain.
|
| Constructor and Description |
|---|
HardwareSlide()
Default constructor for HardwareMain.
|
HardwareSlide(com.qualcomm.robotcore.eventloop.opmode.LinearOpMode opMode)
Overloaded constructor for HardwareMain.
|
| Modifier and Type | Method and Description |
|---|---|
void |
alignToWall() |
void |
driveToCrater() |
void |
dropMarker()
Autonomous action for dropping the marker.
|
void |
findGoldLocation(TensorFlowManager visionManager,
TensorFlowManager.TFLocation location)
Autonomous action for finding the location of the gold cube.
|
void |
init(com.qualcomm.robotcore.hardware.HardwareMap hwMap)
Initializes all mechanisms on the robot.
|
void |
land()
Autonomous action for landing the robot using the rack and pinion mechanism.
|
void |
samplePID(TensorFlowManager visionManager,
TensorFlowManager.TFLocation location)
Autonomous action for sampling the gold cube.
|
void |
waitForStart()
Waits for opMode's to start.
|
public Drivetrain drivetrain
public HardwareSlide()
public HardwareSlide(com.qualcomm.robotcore.eventloop.opmode.LinearOpMode opMode)
opMode - the LinearOpMode that is currently runningpublic void init(com.qualcomm.robotcore.hardware.HardwareMap hwMap)
public void waitForStart()
public void land()
public void findGoldLocation(TensorFlowManager visionManager, TensorFlowManager.TFLocation location)
visionManager - VisionManager containing the GoldDetectorlocation - location holds the TFLocation detectedpublic void samplePID(TensorFlowManager visionManager, TensorFlowManager.TFLocation location)
visionManager - VisionManager containing the GoldDetectorlocation - location holds the TFLocation detectedpublic void dropMarker()
public void alignToWall()
public void driveToCrater()