Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Commit

Permalink
small fix to PinpointLocalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
AnyiLin committed Oct 18, 2024
1 parent 1b27bab commit c5f33af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public Vector getVelocityVector() {
public void setPose(Pose setPose) {
resetPinpoint();
Pose setPinpointPose = MathFunctions.subtractPoses(setPose, startPose);
odo.setPosition(new Pose2D(DistanceUnit.INCH, setPinpointPose.getY(), setPinpointPose.getX(), AngleUnit.RADIANS, setPinpointPose.getHeading()));
odo.setPosition(new Pose2D(DistanceUnit.INCH, setPinpointPose.getX(), setPinpointPose.getY(), AngleUnit.RADIANS, setPinpointPose.getHeading()));
}

/**
Expand Down

0 comments on commit c5f33af

Please sign in to comment.