diff --git a/pathplannerlib/src/main/java/com/pathplanner/lib/commands/PathPlannerAuto.java b/pathplannerlib/src/main/java/com/pathplanner/lib/commands/PathPlannerAuto.java index e491aab7..afef2dd0 100644 --- a/pathplannerlib/src/main/java/com/pathplanner/lib/commands/PathPlannerAuto.java +++ b/pathplannerlib/src/main/java/com/pathplanner/lib/commands/PathPlannerAuto.java @@ -45,13 +45,24 @@ public PathPlannerAuto(String autoName) { HAL.report(tResourceType.kResourceType_PathPlannerAuto, instances); } +/** + * Gets the starting pose from the given auto file. + * + * + * @deprecated This is the misspelled version, to be used for backwards compatibility only, please use getStartingPoseFromAutoFile. + * @param autoName Name of the auto to get the pose from +* @return Starting pose from the given auto + */ + public static Pose2d getStaringPoseFromAutoFile(String autoName) { + return getStartingPoseFromAutoFile(autoName); + } /** * Get the starting pose from the given auto file * * @param autoName Name of the auto to get the pose from * @return Starting pose from the given auto */ - public static Pose2d getStaringPoseFromAutoFile(String autoName) { + public static Pose2d getStartingPoseFromAutoFile(String autoName) { try (BufferedReader br = new BufferedReader( new FileReader(