Skip to content

Commit

Permalink
Start position heading fix on TwoWheelPinpointIMU
Browse files Browse the repository at this point in the history
  • Loading branch information
junkjunk123 authored Dec 6, 2024
1 parent 58fd8d4 commit 6b601b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public TwoWheelPinpointIMULocalizer(HardwareMap map, Pose setStartPose) {
*/
@Override
public Pose getPose() {
return MathFunctions.addPoses(startPose, displacementPose);
return new Pose(startPose.getX()+displacementPose.getX(), startPose.getY()+displacementPose.getY(),displacementPose.getHeading());
}

/**
Expand Down

0 comments on commit 6b601b9

Please sign in to comment.