-
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.
- Loading branch information
Ishaan Ghaskadbi
authored and
Ishaan Ghaskadbi
committed
Nov 19, 2024
1 parent
67e6e9e
commit 60406d9
Showing
25 changed files
with
220 additions
and
26 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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
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
2 changes: 1 addition & 1 deletion
2
...auto/blue/park/BlueParkObservationLeft.kt → ...blue/park/left/BlueParkObservationLeft.kt
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
29 changes: 29 additions & 0 deletions
29
...in/org/firstinspires/ftc/teamcode/opModes/auto/blue/park/left/BlueParkSubmmersibleLeft.kt
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,29 @@ | ||
package org.firstinspires.ftc.teamcode.opModes.auto.blue.park.left | ||
|
||
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 (Submmersible) Left", group = "Submmersible", preselectTeleOp = "MainTeleOp") | ||
class BlueParkSubmmersibleLeft: OpMode() { | ||
|
||
private lateinit var driveSubsystem: DriveSubsystem | ||
|
||
override fun init() { | ||
driveSubsystem = DriveSubsystem(hardwareMap) | ||
|
||
val trajectory = driveSubsystem.trajectorySequenceBuilder(AutoStartPose.BLUE_LEFT.startPose) | ||
.forward(27.0) | ||
.strafeLeft(48.0) | ||
.forward(24.0) | ||
.strafeRight(12.0) | ||
.build() | ||
|
||
driveSubsystem.followTrajectorySequenceAsync(trajectory) | ||
} | ||
|
||
override fun loop() { | ||
driveSubsystem.update() | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...n/org/firstinspires/ftc/teamcode/opModes/auto/blue/park/right/BlueParkObservationRight.kt
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,25 @@ | ||
package org.firstinspires.ftc.teamcode.opModes.auto.blue.park.right | ||
|
||
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) Right", group = "Observation", preselectTeleOp = "MainTeleOp") | ||
class BlueParkObservationRight: OpMode() { | ||
private lateinit var driveSubsystem: DriveSubsystem | ||
|
||
override fun init() { | ||
driveSubsystem = DriveSubsystem(hardwareMap) | ||
|
||
val trajectory = driveSubsystem.trajectorySequenceBuilder(AutoStartPose.BLUE_RIGHT.startPose) | ||
.strafeRight(72.0) | ||
.build() | ||
|
||
driveSubsystem.followTrajectorySequenceAsync(trajectory) | ||
} | ||
|
||
override fun loop() { | ||
driveSubsystem.update() | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
.../org/firstinspires/ftc/teamcode/opModes/auto/blue/park/right/BlueParkSubmmersibleRight.kt
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,30 @@ | ||
package org.firstinspires.ftc.teamcode.opModes.auto.blue.park.right | ||
|
||
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 (Submmersible) Right", group = "Submmersible", preselectTeleOp = "MainTeleOp") | ||
class BlueParkSubmmersibleRight: OpMode() { | ||
|
||
private lateinit var driveSubsystem: DriveSubsystem | ||
|
||
override fun init() { | ||
driveSubsystem = DriveSubsystem(hardwareMap) | ||
|
||
val trajectory = driveSubsystem.trajectorySequenceBuilder(AutoStartPose.BLUE_RIGHT.startPose) | ||
.forward(27.0) | ||
.strafeLeft(24.0) | ||
.forward(24.0) | ||
.strafeRight(12.0) | ||
.build() | ||
|
||
driveSubsystem.followTrajectorySequenceAsync(trajectory) | ||
|
||
} | ||
|
||
override fun loop() { | ||
driveSubsystem.update() | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...otlin/org/firstinspires/ftc/teamcode/opModes/auto/red/park/left/RedParkObservationLeft.kt
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,26 @@ | ||
package org.firstinspires.ftc.teamcode.opModes.auto.red.park.left | ||
|
||
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 = "Red Park (Observation) Left", group = "Observation", preselectTeleOp = "MainTeleOp") | ||
class RedParkObservationLeft: OpMode() { | ||
|
||
private lateinit var driveSubsystem: DriveSubsystem | ||
|
||
override fun init() { | ||
driveSubsystem = DriveSubsystem(hardwareMap) | ||
|
||
val trajectory = driveSubsystem.trajectorySequenceBuilder(AutoStartPose.RED_LEFT.startPose) | ||
.strafeRight(72.0) | ||
.build() | ||
|
||
driveSubsystem.followTrajectorySequenceAsync(trajectory) | ||
} | ||
|
||
override fun loop() { | ||
driveSubsystem.update() | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...tlin/org/firstinspires/ftc/teamcode/opModes/auto/red/park/left/RedParkSubmmersibleLeft.kt
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,29 @@ | ||
package org.firstinspires.ftc.teamcode.opModes.auto.red.park.left | ||
|
||
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 = "Red Park (Submmersible) Left", group = "Submmersible", preselectTeleOp = "MainTeleOp") | ||
class RedParkSubmmersibleLeft: OpMode() { | ||
|
||
private lateinit var driveSubsystem: DriveSubsystem | ||
|
||
override fun init() { | ||
driveSubsystem = DriveSubsystem(hardwareMap) | ||
|
||
val trajectory = driveSubsystem.trajectorySequenceBuilder(AutoStartPose.RED_LEFT.startPose) | ||
.forward(27.0) | ||
.strafeLeft(24.0) | ||
.forward(24.0) | ||
.strafeRight(12.0) | ||
.build() | ||
|
||
driveSubsystem.followTrajectorySequenceAsync(trajectory) | ||
} | ||
|
||
override fun loop() { | ||
driveSubsystem.update() | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...lin/org/firstinspires/ftc/teamcode/opModes/auto/red/park/right/RedParkObservationRight.kt
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,26 @@ | ||
package org.firstinspires.ftc.teamcode.opModes.auto.red.park.right | ||
|
||
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 = "Red Park (Observation) Right", group = "Observation", preselectTeleOp = "MainTeleOp") | ||
class RedParkObservationRight: OpMode() { | ||
|
||
private lateinit var driveSubsystem: DriveSubsystem | ||
|
||
override fun init() { | ||
driveSubsystem = DriveSubsystem(hardwareMap) | ||
|
||
val trajectory = driveSubsystem.trajectorySequenceBuilder(AutoStartPose.RED_RIGHT.startPose) | ||
.strafeRight(48.0) | ||
.build() | ||
|
||
driveSubsystem.followTrajectorySequenceAsync(trajectory) | ||
} | ||
|
||
override fun loop() { | ||
driveSubsystem.update() | ||
} | ||
} |
Oops, something went wrong.