Add initial code

This commit is contained in:
robotics2
2024-09-24 17:10:22 -07:00
parent 156423422c
commit a7f060c3eb
2 changed files with 4 additions and 1 deletions

View File

@ -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";

View File

@ -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));
}
/**