@Autonomous(name="Inner Blue v10",
group="MCC")
public class InnerBlue
extends com.qualcomm.robotcore.eventloop.opmode.LinearOpMode
Modifier and Type | Field and Description |
---|---|
(package private) SampleMecanumDrive |
drive |
private static java.lang.String |
LABEL_FIRST_ELEMENT |
private static java.lang.String |
LABEL_SECOND_ELEMENT |
(package private) Robot |
robot |
(package private) com.acmerobotics.roadrunner.geometry.Pose2d |
startPose |
private org.firstinspires.ftc.robotcore.external.tfod.TFObjectDetector |
tfod
tfod is the variable we will use to store our instance of the TensorFlow Object
Detection engine. |
private static java.lang.String |
TFOD_MODEL_ASSET |
(package private) com.qualcomm.robotcore.util.ElapsedTime |
time |
double |
TOWER_SHOT_ANGLE |
private org.firstinspires.ftc.robotcore.external.navigation.VuforiaLocalizer |
vuforia
vuforia is the variable we will use to store our instance of the Vuforia
localization engine. |
private static java.lang.String |
VUFORIA_KEY |
Constructor and Description |
---|
InnerBlue() |
Modifier and Type | Method and Description |
---|---|
void |
dropOffWobbleGoal()
Drops off the wobble goal
|
void |
executeAutoPath(char targetZone)
Executes the (MCC) auto path, completing the following tasks:
- shoot 3 pre-loaded rings into low goal
- drop off pre-loaded wobble goal
- park on launch line
Pre-conditions:
- robot is on the inner blue starting line
- robot is pre-loaded with 1 wobble goal, and the arm is in CARRY position
- robot is pre-loaded with 3 rings
- robot's webcam is facing the ring stack
|
private void |
initTfod()
Initialize the TensorFlow Object Detection engine.
|
private void |
initVuforia()
Initialize the Vuforia localization engine.
|
void |
runOpMode() |
void |
shootThreeRings()
Shoots 3 rings into the blue tower goal
|
handleLoop, idle, init_loop, init, internalPostInitLoop, internalPostLoop, isStarted, isStopRequested, loop, opModeIsActive, sleep, start, stop, waitForStart
com.qualcomm.robotcore.util.ElapsedTime time
Robot robot
SampleMecanumDrive drive
com.acmerobotics.roadrunner.geometry.Pose2d startPose
public final double TOWER_SHOT_ANGLE
private static final java.lang.String TFOD_MODEL_ASSET
private static final java.lang.String LABEL_FIRST_ELEMENT
private static final java.lang.String LABEL_SECOND_ELEMENT
private static final java.lang.String VUFORIA_KEY
private org.firstinspires.ftc.robotcore.external.navigation.VuforiaLocalizer vuforia
vuforia
is the variable we will use to store our instance of the Vuforia
localization engine.private org.firstinspires.ftc.robotcore.external.tfod.TFObjectDetector tfod
tfod
is the variable we will use to store our instance of the TensorFlow Object
Detection engine.public void runOpMode()
runOpMode
in class com.qualcomm.robotcore.eventloop.opmode.LinearOpMode
public void executeAutoPath(char targetZone)
targetZone
- target zone for wobble goal drop off. Either A, B, or C.public void shootThreeRings()
public void dropOffWobbleGoal()
private void initVuforia()
private void initTfod()