Skip to content

Commit

Permalink
Fix fromChoreoTrajectory C++ typo (mjansen4857#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansen4857 authored Jan 3, 2024
1 parent 8e1a4bc commit 85db9ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ frc2::CommandPtr CommandUtil::pathCommandFromJson(const wpi::json &json,

if (loadChoreoPaths) {
return AutoBuilder::followPathWithEvents(
PathPlannerPath::fromChoreoTrajecory(pathName));
PathPlannerPath::fromChoreoTrajectory(pathName));
} else {
return AutoBuilder::followPathWithEvents(
PathPlannerPath::fromPathFile(pathName));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ std::shared_ptr<PathPlannerPath> PathPlannerPath::fromPathFile(
return path;
}

std::shared_ptr<PathPlannerPath> PathPlannerPath::fromChoreoTrajecory(
std::shared_ptr<PathPlannerPath> PathPlannerPath::fromChoreoTrajectory(
std::string trajectoryName) {
const std::string filePath = frc::filesystem::GetDeployDirectory()
+ "/choreo/" + trajectoryName + ".traj";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class PathPlannerPath: public std::enable_shared_from_this<PathPlannerPath> {
* of the trajectory. The trajectories must be located in the "deploy/choreo" directory.
* @return PathPlannerPath created from the given Choreo trajectory file
*/
static std::shared_ptr<PathPlannerPath> fromChoreoTrajecory(
static std::shared_ptr<PathPlannerPath> fromChoreoTrajectory(
std::string trajectoryName);

/**
Expand Down

0 comments on commit 85db9ee

Please sign in to comment.