-
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.
# Conflicts: # TeamCode/src/main/kotlin/org/firstinspires/ftc/teamcode/opModes/teleOp/MainTeleOp.kt
- Loading branch information
Showing
10 changed files
with
329 additions
and
1 deletion.
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.
39 changes: 39 additions & 0 deletions
39
PathPlanning/src/main/kotlin/com/example/pathplanning/blue/park/BlueParkObservation1.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,39 @@ | ||
package com.example.pathplanning.blue.park | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object BlueParkObservation1 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(-12.0, 62.0, (270.0).toRadians())) | ||
.strafeRight(48.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
PathPlanning/src/main/kotlin/com/example/pathplanning/blue/park/BlueParkObservation2.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,39 @@ | ||
package com.example.pathplanning.blue.park | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object BlueParkObservation2 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(12.0, 62.0, (270.0).toRadians())) | ||
.strafeRight(72.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...Planning/src/main/kotlin/com/example/pathplanning/blue/park/BlueParkTouchSubmmersible1.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,44 @@ | ||
package com.example.pathplanning.blue.park | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object BlueParkTouchSubmmersible1 { | ||
|
||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(-12.0, 62.0, (270.0).toRadians())) | ||
.forward(27.0) | ||
.strafeLeft(48.0) | ||
.forward(24.0) | ||
.strafeRight(12.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} | ||
|
42 changes: 42 additions & 0 deletions
42
...Planning/src/main/kotlin/com/example/pathplanning/blue/park/BlueParkTouchSubmmersible2.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,42 @@ | ||
package com.example.pathplanning.blue.park | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object BlueParkTouchSubmmersible2 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(12.0, 62.0, (270.0).toRadians())) | ||
.forward(27.0) | ||
.strafeLeft(24.0) | ||
.forward(24.0) | ||
.strafeRight(12.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
PathPlanning/src/main/kotlin/com/example/pathplanning/red/park/RedParkObservation1.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,39 @@ | ||
package com.example.pathplanning.red.park | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object RedParkObservation1 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(-12.0, -62.0, (90.0).toRadians())) | ||
.strafeRight(72.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
PathPlanning/src/main/kotlin/com/example/pathplanning/red/park/RedParkObservation2.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,39 @@ | ||
package com.example.pathplanning.red.park | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object RedParkObservation2 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(12.0, -62.0, (90.0).toRadians())) | ||
.strafeRight(48.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
PathPlanning/src/main/kotlin/com/example/pathplanning/red/park/RedParkTouchSubmmersible1.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,42 @@ | ||
package com.example.pathplanning.red.park | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object RedParkTouchSubmmersible1 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(-12.0, -62.0, (90.0).toRadians())) | ||
.forward(27.0) | ||
.strafeLeft(24.0) | ||
.forward(24.0) | ||
.strafeRight(12.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
PathPlanning/src/main/kotlin/com/example/pathplanning/red/park/RedParkTouchSubmmersible2.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,42 @@ | ||
package com.example.pathplanning.red.park | ||
|
||
import com.acmerobotics.roadrunner.geometry.Pose2d | ||
import com.noahbres.meepmeep.MeepMeep | ||
import com.noahbres.meepmeep.core.toRadians | ||
import com.noahbres.meepmeep.roadrunner.DefaultBotBuilder | ||
import java.awt.Image | ||
import java.io.File | ||
import java.io.IOException | ||
import javax.imageio.ImageIO | ||
|
||
object RedParkTouchSubmmersible2 { | ||
@JvmStatic | ||
fun main(args: Array<String>) { | ||
val meepMeep = MeepMeep(800) | ||
|
||
val myBot = DefaultBotBuilder(meepMeep) // Set bot constraints: maxVel, maxAccel, maxAngVel, maxAngAccel, track width | ||
.setConstraints(30.0, 30.0, Math.toRadians(180.0), Math.toRadians(170.0), 14.0) | ||
.followTrajectorySequence { drive -> | ||
drive.trajectorySequenceBuilder(Pose2d(12.0, -62.0, (90.0).toRadians())) | ||
.forward(27.0) | ||
.strafeLeft(48.0) | ||
.forward(24.0) | ||
.strafeRight(12.0) | ||
.build() | ||
} | ||
var img: Image? = null | ||
try { | ||
img = ImageIO.read(File("/Users/ishaanghaskadbi/Downloads/field.png")) | ||
} catch (_ : IOException) { | ||
|
||
} | ||
|
||
if (img != null) { | ||
meepMeep.setBackground(img) | ||
.setDarkMode(true) | ||
.setBackgroundAlpha(0.95f) | ||
.addEntity(myBot) | ||
.start() | ||
} | ||
} | ||
} |
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