Skip to content

Commit

Permalink
I got it working. It will take more docs, but we got this.
Browse files Browse the repository at this point in the history
  • Loading branch information
richpant committed Dec 28, 2024
1 parent 04f6d91 commit 3c93145
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion TeamCode/src/main/java/baronTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public void init() {

@Override
public void start() {
Follower f = new Follower(hardwareMap);
Follower f = new Follower(hardwareMap, FConstants.class, LConstants.class);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
@Config
public class LConstants {
static {
OTOSConstants.offset = new Pose2D(3, 2, Math.PI / 2);
OTOSConstants.offset = new Pose2D(3, 2, (3 *Math.PI) / 2);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class ForwardVelocityTuner extends OpMode {
*/
@Override
public void init() {
poseUpdater = new PoseUpdater(hardwareMap);
poseUpdater = new PoseUpdater(hardwareMap, FConstants.class, LConstants.class);

leftFront = hardwareMap.get(DcMotorEx.class, leftFrontMotorName);
leftRear = hardwareMap.get(DcMotorEx.class, leftRearMotorName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class ForwardZeroPowerAccelerationTuner extends OpMode {
*/
@Override
public void init() {
poseUpdater = new PoseUpdater(hardwareMap);
poseUpdater = new PoseUpdater(hardwareMap, FConstants.class, LConstants.class);

leftFront = hardwareMap.get(DcMotorEx.class, leftFrontMotorName);
leftRear = hardwareMap.get(DcMotorEx.class, leftRearMotorName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class LateralZeroPowerAccelerationTuner extends OpMode {
*/
@Override
public void init() {
poseUpdater = new PoseUpdater(hardwareMap);
poseUpdater = new PoseUpdater(hardwareMap, FConstants.class, LConstants.class);

leftFront = hardwareMap.get(DcMotorEx.class, leftFrontMotorName);
leftRear = hardwareMap.get(DcMotorEx.class, leftRearMotorName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class StrafeVelocityTuner extends OpMode {
*/
@Override
public void init() {
poseUpdater = new PoseUpdater(hardwareMap);
poseUpdater = new PoseUpdater(hardwareMap, FConstants.class, LConstants.class);

leftFront = hardwareMap.get(DcMotorEx.class, leftFrontMotorName);
leftRear = hardwareMap.get(DcMotorEx.class, leftRearMotorName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class ForwardTuner extends OpMode {
*/
@Override
public void init() {
poseUpdater = new PoseUpdater(hardwareMap);
poseUpdater = new PoseUpdater(hardwareMap, FConstants.class, LConstants.class);

dashboardPoseTracker = new DashboardPoseTracker(poseUpdater);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class LateralTuner extends OpMode {
*/
@Override
public void init() {
poseUpdater = new PoseUpdater(hardwareMap);
poseUpdater = new PoseUpdater(hardwareMap, FConstants.class, LConstants.class);

dashboardPoseTracker = new DashboardPoseTracker(poseUpdater);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class LocalizationTest extends OpMode {
*/
@Override
public void init() {
poseUpdater = new PoseUpdater(hardwareMap);
poseUpdater = new PoseUpdater(hardwareMap, FConstants.class, LConstants.class);

dashboardPoseTracker = new DashboardPoseTracker(poseUpdater);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class TurnTuner extends OpMode {
*/
@Override
public void init() {
poseUpdater = new PoseUpdater(hardwareMap);
poseUpdater = new PoseUpdater(hardwareMap, FConstants.class, LConstants.class);

dashboardPoseTracker = new DashboardPoseTracker(poseUpdater);

Expand Down
2 changes: 1 addition & 1 deletion TeamCode/src/main/java/pedroPathing/tuners/pid/Circle.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class Circle extends OpMode {
*/
@Override
public void init() {
follower = new Follower(hardwareMap);
follower = new Follower(hardwareMap, FConstants.class, LConstants.class);

circle = follower.pathBuilder()
.addPath(new BezierCurve(new Point(0,0, Point.CARTESIAN), new Point(RADIUS,0, Point.CARTESIAN), new Point(RADIUS, RADIUS, Point.CARTESIAN)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class CurvedBackAndForth extends OpMode {
*/
@Override
public void init() {
follower = new Follower(hardwareMap);
follower = new Follower(hardwareMap, FConstants.class, LConstants.class);

forwards = new Path(new BezierCurve(new Point(0,0, Point.CARTESIAN), new Point(Math.abs(DISTANCE),0, Point.CARTESIAN), new Point(Math.abs(DISTANCE),DISTANCE, Point.CARTESIAN)));
backwards = new Path(new BezierCurve(new Point(Math.abs(DISTANCE),DISTANCE, Point.CARTESIAN), new Point(Math.abs(DISTANCE),0, Point.CARTESIAN), new Point(0,0, Point.CARTESIAN)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class StraightBackAndForth extends OpMode {
*/
@Override
public void init() {
follower = new Follower(hardwareMap);
follower = new Follower(hardwareMap, FConstants.class, LConstants.class);

forwards = new Path(new BezierLine(new Point(0,0, Point.CARTESIAN), new Point(DISTANCE,0, Point.CARTESIAN)));
forwards.setConstantHeadingInterpolation(0);
Expand Down
3 changes: 2 additions & 1 deletion build.dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ dependencies {
implementation 'org.firstinspires.ftc:Hardware:10.1.1'
implementation 'org.firstinspires.ftc:FtcCommon:10.1.1'
implementation 'org.firstinspires.ftc:Vision:10.1.1'
implementation 'com.pedropathing:pedro:0.0.1-beta5'
implementation 'com.pedropathing:pedro:0.0.1-beta8'
//noinspection GradleDependency
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.acmerobotics.dashboard:dashboard:0.4.16'
}
Expand Down

0 comments on commit 3c93145

Please sign in to comment.