-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also added a backup localizer for the vision
- Loading branch information
1 parent
f703d26
commit ac41cb8
Showing
4 changed files
with
59 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/BradenTestAutoOp.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.firstinspires.ftc.teamcode; | ||
|
||
|
||
import com.acmerobotics.dashboard.FtcDashboard; | ||
import com.acmerobotics.roadrunner.trajectory.Trajectory; | ||
import com.qualcomm.robotcore.eventloop.opmode.Autonomous; | ||
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; | ||
|
||
import org.firstinspires.ftc.teamcode.drive.BaseBotMecanumDrive; | ||
import org.firstinspires.ftc.teamcode.drive.BotMecanumDrive; | ||
import org.firstinspires.ftc.teamcode.drive.DriveFactory; | ||
import org.firstinspires.ftc.teamcode.drive.VisionLocalizer; | ||
import org.firstinspires.ftc.teamcode.subsystems.Carosel; | ||
import org.firstinspires.ftc.teamcode.subsystems.Vision; | ||
|
||
@Autonomous(name = "BradenTestAutoOp") | ||
public class BradenTestAutoOp extends LinearOpMode { | ||
|
||
Vision vision = null; | ||
Carosel carousel = null; | ||
BaseBotMecanumDrive drive = null; | ||
|
||
private Trajectory testTrajectory; | ||
|
||
@Override | ||
public void runOpMode() throws InterruptedException { | ||
|
||
vision = new Vision(this, hardwareMap, telemetry); | ||
vision.init(); | ||
|
||
drive = DriveFactory.getDrive(hardwareMap); | ||
// drive.setVisionLocalizer(vision.getVuforia()); | ||
// VisionLocalizer visionLocalizer = new VisionLocalizer(FtcDashboard.getInstance().getTelemetry(), vision.getVuforia()); | ||
|
||
waitForStart(); | ||
|
||
sleep(30000); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters