Skip to content

Commit

Permalink
Sample Blue Park
Browse files Browse the repository at this point in the history
  • Loading branch information
SachetK committed Nov 17, 2024
1 parent 64574d1 commit 16d35e4
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package org.firstinspires.ftc.teamcode.opModes.auto.blue.park

import com.qualcomm.robotcore.eventloop.opmode.Autonomous
import com.qualcomm.robotcore.eventloop.opmode.OpMode
import org.firstinspires.ftc.teamcode.constants.AutoStartPose
import org.firstinspires.ftc.teamcode.subsystems.drive.DriveSubsystem

@Autonomous(name = "Blue Park (Observation) Left", group = "Observation", preselectTeleOp = "MainTeleOp")
class BlueParkObservationLeft : OpMode() {
private lateinit var driveSubsystem: DriveSubsystem

override fun init() {
driveSubsystem = DriveSubsystem(hardwareMap)

val trajectory = driveSubsystem.trajectorySequenceBuilder(AutoStartPose.BLUE_LEFT.startPose)
.strafeRight(48.0)
.build()

driveSubsystem.followTrajectorySequenceAsync(trajectory)
}

override fun loop() {
driveSubsystem.update()
}
}

0 comments on commit 16d35e4

Please sign in to comment.