Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
b6b60b7
added roadrunner
Broyojo Feb 10, 2023
ee90213
started to integrate LinearSlide
Broyojo Feb 10, 2023
4cfa343
added one player teleop test
Broyojo Feb 10, 2023
305b812
added field centric to teleop test
Broyojo Feb 10, 2023
f4a0e11
added basic one-cone auto
Broyojo Feb 10, 2023
7858da5
fixed hardware map names for drive
Broyojo Feb 10, 2023
b7c3a20
fixed motor directions and IMU orientation
Broyojo Feb 10, 2023
b9134fc
removed some TODO's in mechanum drive
Broyojo Feb 10, 2023
570a52b
hopefully fixed teleop test
Broyojo Feb 10, 2023
6861d60
fixed gear ratio in drive constants
Broyojo Feb 11, 2023
286520a
renamed SampleMechanumDrive
Broyojo Feb 11, 2023
a0ae678
fixed gear ratio and tuned PIDF
Broyojo Feb 19, 2023
2c5b62f
fixed right motor order and tuned straight, strafe, and turn
Broyojo Feb 20, 2023
4543125
tuned PIDs and track width
Broyojo Feb 20, 2023
2eedded
reorganized directory structure
Broyojo Feb 21, 2023
bdec15e
added simple teleop
Broyojo Feb 21, 2023
f60ad92
added linear slide to simple teleop
Broyojo Feb 21, 2023
c57e730
made auto skeleton
Broyojo Feb 21, 2023
a8240ab
filed all tuning opmodes into the tuning group
Broyojo Feb 21, 2023
02b5e88
roadrunner day 1
largebread72 Feb 24, 2023
4c9c630
roadrunner day 1
largebread72 Feb 24, 2023
18a0a47
roadrunner day 2
largebread72 Feb 24, 2023
db8c89f
added funny auto using path drawing
Broyojo Feb 24, 2023
72c9c85
added complex spline path
Broyojo Feb 24, 2023
5e2bd73
First cone complete (~90% acc)
largebread72 Feb 28, 2023
5ee3fd3
working on second cone(stuck in stop error)
largebread72 Feb 28, 2023
b5cd65f
Second cone working (all anthony)
largebread72 Mar 2, 2023
f790a6c
worked on linear actuator and third cone
Broyojo Mar 2, 2023
90f36d7
Linear actuator cone tilter
largebread72 Mar 3, 2023
096e66e
Cone 2
largebread72 Mar 3, 2023
57273fd
1+3 auto working (overtime, slight misalign)
largebread72 Mar 3, 2023
e59fbc0
Possible fix for misalign
largebread72 Mar 3, 2023
f170043
scrimmage
largebread72 Mar 3, 2023
c94392d
unholy merge of old and new code
Broyojo Mar 3, 2023
8df0a41
unholy merge of old and new code
Broyojo Mar 3, 2023
190d942
removed OG version of code
Broyojo Mar 3, 2023
8c84039
re-tuned with linear actuator and feedforward
Broyojo Mar 4, 2023
895e873
Working 3 Cone Auto
largebread72 Mar 9, 2023
fb14389
Working 3 Cone Auto
largebread72 Mar 9, 2023
b681eb2
Working 3 Cone Auto (Both Sides) (Parking adjusted)
largebread72 Mar 9, 2023
13ebcd3
Modified 3 Cone Auto for ground junction (Both Sides) (Parking adjusted)
largebread72 Mar 11, 2023
3385860
Added actuator to old teleop
largebread72 Mar 11, 2023
ffbe2c3
States autonomous adjustments
largebread72 Mar 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions TeamCode/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ android {
dependencies {
implementation project(':FtcRobotController')
annotationProcessor files('lib/OpModeAnnotationProcessor.jar')
implementation 'org.apache.commons:commons-math3:3.6.1'
implementation 'com.acmerobotics.roadrunner:core:0.5.5'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.7'
}

dependencies {
implementation 'org.openftc:easyopencv:1.5.2'
implementation 'com.google.ar:core:1.30.0'
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package org.firstinspires.ftc.teamcode.auto;

import com.acmerobotics.dashboard.FtcDashboard;
import com.acmerobotics.dashboard.config.Config;
import com.acmerobotics.dashboard.telemetry.MultipleTelemetry;
import com.acmerobotics.roadrunner.geometry.Pose2d;
import com.acmerobotics.roadrunner.geometry.Vector2d;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;

import org.firstinspires.ftc.robotcore.external.Telemetry;
import org.firstinspires.ftc.teamcode.old.pipeline.SleeveDetectionNewOld;
import org.firstinspires.ftc.teamcode.subsystem.colorsensor.ColorSensor;
import org.firstinspires.ftc.teamcode.subsystem.drive.SampleMecanumDrive;
import org.firstinspires.ftc.teamcode.subsystem.slide.LinearSlide;
import org.firstinspires.ftc.teamcode.subsystem.webcam.Webcam;
import org.firstinspires.ftc.teamcode.trajectorysequence.TrajectorySequence;

@Config
@Autonomous
public class AutoFunny extends LinearOpMode {
@Override
public void runOpMode() throws InterruptedException {
Telemetry telemetry = new MultipleTelemetry(this.telemetry, FtcDashboard.getInstance().getTelemetry());

SampleMecanumDrive drive = new SampleMecanumDrive(hardwareMap);
LinearSlide slide = new LinearSlide(hardwareMap);
SleeveDetectionNewOld sleeveDetection = new SleeveDetectionNewOld();
Webcam cam = new Webcam(hardwareMap, sleeveDetection);
ColorSensor colorSensor = new ColorSensor(hardwareMap);

// TrajectorySequence traj = drive.trajectorySequenceBuilder(new Pose2d(-36.85, -66.01, Math.toRadians(88.15)))
// .splineTo(new Vector2d(-6.40, -15.31), Math.toRadians(2.23))
// .splineToConstantHeading(new Vector2d(26.97, -56.94), Math.toRadians(199.98))
// .splineToConstantHeading(new Vector2d(-37.01, -12.88), Math.toRadians(175.60))
// .build();
TrajectorySequence traj = drive.trajectorySequenceBuilder(new Pose2d(-32.48, -67.46, Math.toRadians(90.00)))
.splineToConstantHeading(new Vector2d(-13.20, -52.56), Math.toRadians(88.52))
.splineToConstantHeading(new Vector2d(-20.65, -4.13), Math.toRadians(128.21))
.build();
drive.setPoseEstimate(traj.start());

drive.setPoseEstimate(traj.start());

waitForStart();

if (isStopRequested()) return;

drive.followTrajectorySequence(traj);
}
}
Loading