Skip to content

Commit

Permalink
Merge pull request #18 from junkjunk123/master
Browse files Browse the repository at this point in the history
Start position heading fix on TwoWheelPinpointIMU
  • Loading branch information
Logan-Nash authored Dec 6, 2024
2 parents 58fd8d4 + 6b601b9 commit b0fc4bb
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 b0fc4bb

Please sign in to comment.