hopefully fixes any issues with the class

This commit is contained in:
brotherhobo
2024-07-31 15:23:57 -04:00
parent 1703f88159
commit 22d38b1289

View File

@ -86,6 +86,7 @@ public class ThreeWheelIMULocalizer extends Localizer {
public ThreeWheelIMULocalizer(HardwareMap map, Pose setStartPose) {
hardwareMap = map;
imu = hardwareMap.get(IMU.class, "imu");
// TODO: replace this with your IMU's orientation
imu.initialize(new IMU.Parameters(new RevHubOrientationOnRobot(RevHubOrientationOnRobot.LogoFacingDirection.LEFT, RevHubOrientationOnRobot.UsbFacingDirection.UP)));
@ -95,7 +96,6 @@ public class ThreeWheelIMULocalizer extends Localizer {
strafeEncoderPose = new Pose(6.9, 1, Math.toRadians(90));
// TODO: replace these with your encoder ports
leftEncoder = new Encoder(hardwareMap.get(DcMotorEx.class, "lb"));
rightEncoder = new Encoder(hardwareMap.get(DcMotorEx.class, "lf"));