hopefully fixes any issues with the class
This commit is contained in:
@ -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"));
|
Reference in New Issue
Block a user