From a7f060c3eb161221cca50443a99d5bd9a0ecdfbe Mon Sep 17 00:00:00 2001 From: robotics2 Date: Tue, 24 Sep 2024 17:10:22 -0700 Subject: [PATCH] Add initial code --- .../java/org/firstinspires/ftc/teamcode/PedroConstants.java | 2 ++ .../ftc/teamcode/pedroPathing/localization/PoseUpdater.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/PedroConstants.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/PedroConstants.java index c4c33f0..15b3932 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/PedroConstants.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/PedroConstants.java @@ -10,6 +10,8 @@ public class PedroConstants { /* Robot parameters */ + // Turn localizer - -0.003 + // Robot motor configurations public static final String FRONT_LEFT_MOTOR = "Drive front lt"; diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/pedroPathing/localization/PoseUpdater.java b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/pedroPathing/localization/PoseUpdater.java index 6bd60f7..ad74928 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/pedroPathing/localization/PoseUpdater.java +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/pedroPathing/localization/PoseUpdater.java @@ -5,6 +5,7 @@ import com.qualcomm.robotcore.hardware.HardwareMap; import com.qualcomm.robotcore.hardware.IMU; import org.firstinspires.ftc.robotcore.external.navigation.AngleUnit; +import org.firstinspires.ftc.teamcode.pedroPathing.localization.localizers.DriveEncoderLocalizer; import org.firstinspires.ftc.teamcode.pedroPathing.localization.localizers.ThreeWheelIMULocalizer; import org.firstinspires.ftc.teamcode.pedroPathing.localization.localizers.ThreeWheelLocalizer; import org.firstinspires.ftc.teamcode.pedroPathing.localization.localizers.TwoWheelLocalizer; @@ -69,7 +70,7 @@ public class PoseUpdater { */ public PoseUpdater(HardwareMap hardwareMap) { // TODO: replace the second argument with your preferred localizer - this(hardwareMap, new ThreeWheelIMULocalizer(hardwareMap)); + this(hardwareMap, new DriveEncoderLocalizer(hardwareMap)); } /**