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) {
|
public ThreeWheelIMULocalizer(HardwareMap map, Pose setStartPose) {
|
||||||
hardwareMap = map;
|
hardwareMap = map;
|
||||||
imu = hardwareMap.get(IMU.class, "imu");
|
imu = hardwareMap.get(IMU.class, "imu");
|
||||||
|
|
||||||
// TODO: replace this with your IMU's orientation
|
// TODO: replace this with your IMU's orientation
|
||||||
imu.initialize(new IMU.Parameters(new RevHubOrientationOnRobot(RevHubOrientationOnRobot.LogoFacingDirection.LEFT, RevHubOrientationOnRobot.UsbFacingDirection.UP)));
|
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));
|
strafeEncoderPose = new Pose(6.9, 1, Math.toRadians(90));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// TODO: replace these with your encoder ports
|
// TODO: replace these with your encoder ports
|
||||||
leftEncoder = new Encoder(hardwareMap.get(DcMotorEx.class, "lb"));
|
leftEncoder = new Encoder(hardwareMap.get(DcMotorEx.class, "lb"));
|
||||||
rightEncoder = new Encoder(hardwareMap.get(DcMotorEx.class, "lf"));
|
rightEncoder = new Encoder(hardwareMap.get(DcMotorEx.class, "lf"));
|
Reference in New Issue
Block a user