Skip to content

Commit

Permalink
roadrunner auto test
Browse files Browse the repository at this point in the history
  • Loading branch information
powerfulHermes committed Oct 16, 2023
1 parent fa1538a commit 60601a8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public void runOpMode() throws InterruptedException {

TrajectorySequence autoDrive = drive.trajectorySequenceBuilder(startPose)

//relativistic driving that also includes turning to simulate april tags recognition
.forward(24)
.waitSeconds(1)
.turn(Math.toRadians(90))
Expand All @@ -32,11 +33,14 @@ public void runOpMode() throws InterruptedException {


/*
//coordinate based driving
.lineTo(new Vector2d(-34, -36))
.strafeTo(new Vector2d(48, -36))
.build();
*/
/* .splineTo(new Vector2d(-34, -30), Math.toRadians(90))
/*
// also coordinate but spline and goes to corner instead of right in front of board
.splineTo(new Vector2d(-34, -30), Math.toRadians(90))
.splineTo(new Vector2d(34, -30), Math.toRadians(-90))
.splineTo(new Vector2d(56, -56),Math.toRadians(0) )
.build();
Expand Down

0 comments on commit 60601a8

Please sign in to comment.