Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Fixed Merge and Servo Issues (Hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
OPstriker committed Jan 13, 2024
2 parents 1405a46 + cb7bf77 commit 794f8c1
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 110 deletions.
10 changes: 6 additions & 4 deletions TeamCode/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,19 @@
apply from: '../build.common.gradle'
apply from: '../build.dependencies.gradle'
apply plugin: 'org.jetbrains.kotlin.android'
apply plugin: 'org.team11260.fast-load-plugin'
//apply plugin: 'org.team11260.fast-load-plugin'

buildscript {
repositories {
mavenCentral()
maven { url = 'https://www.matthewo.tech/maven/' }

maven {
url = 'https://www.matthewo.tech/maven/'
}
}
dependencies {
classpath 'org.team11260:fast-load-plugin:0.1.1'
}
}
}}

repositories {
maven {
Expand Down
47 changes: 0 additions & 47 deletions TeamCode/src/main/cpp/CMakeLists.txt

This file was deleted.

1 change: 0 additions & 1 deletion TeamCode/src/main/cpp/depthai-core
Submodule depthai-core deleted from bcd7a0
1 change: 0 additions & 1 deletion TeamCode/src/main/cpp/libusb
Submodule libusb deleted from 4588ef
45 changes: 0 additions & 45 deletions TeamCode/src/main/cpp/main.cpp

This file was deleted.

1 change: 0 additions & 1 deletion TeamCode/src/main/cpp/opencv
Submodule opencv deleted from 6c57ce
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ class Diagnostic : LinearOpMode() {

private fun testCircleDrive() {
val traj = mecDrive.trajectoryBuilder(Pose2d())
.splineTo(Vector2d(strafeLength, strafeLength), Math.toRadians(90.0))
.splineTo(Vector2d(0.0, 2 * strafeLength), Math.toRadians(180.0))
.splineTo(Vector2d(-strafeLength, strafeLength), Math.toRadians(270.0))
.splineTo(Vector2d(0.0, 0.0), 0.0).build()
.splineTo(Vector2d(strafeLength, strafeLength), Math.toRadians(90.0))
.splineTo(Vector2d(0.0, 2 * strafeLength), Math.toRadians(180.0))
.splineTo(Vector2d(-strafeLength, strafeLength), Math.toRadians(270.0))
.splineTo(Vector2d(0.0, 0.0), 0.0).build()

this.telemetry.addLine("TEST: Circle Drive")
mecDrive.followTrajectory(traj)
Expand All @@ -49,16 +49,16 @@ class Diagnostic : LinearOpMode() {
}

private fun testSquareStrafe() {
val traj = mecDrive.trajectoryBuilder(mecDrive.poseEstimate)
.forward(strafeLength)
.strafeLeft(strafeLength)
.back(strafeLength)
.strafeRight(strafeLength)
.build()
val traj = mecDrive.trajectorySequenceBuilder(Pose2d(0.0,0.0,0.0))
.forward(strafeLength)
.strafeLeft(strafeLength)
.back(strafeLength)
.strafeRight(strafeLength)
.build()

this.telemetry.addLine("TEST: Square Strafe")
this.telemetry.update()
mecDrive.followTrajectory(traj)
mecDrive.followTrajectorySequence(traj)
while (mecDrive.isBusy) {
sleep(20)
}
Expand Down

0 comments on commit 794f8c1

Please sign in to comment.