Skip to content

Commit

Permalink
Change docs examples from followPathWithEvents to followPath
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansen4857 committed Feb 7, 2024
1 parent b61ba22 commit aa883be
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Writerside/topics/pplib-Follow-a-Single-Path.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class RobotContainer {
PathPlannerPath path = PathPlannerPath.fromPathFile("Example Path");

// Create a path following command using AutoBuilder. This will also trigger event markers.
return AutoBuilder.followPathWithEvents(path);
return AutoBuilder.followPath(path);
}
}
```
Expand All @@ -40,7 +40,7 @@ frc2::CommandPtr RobotContainer::getAutonomousCommand(){
auto path = PathPlannerPath::fromPathFile("Example Path");

// Create a path following command using AutoBuilder. This will also trigger event markers.
return AutoBuilder::followPathWithEvents(path);
return AutoBuilder::followPath(path);
}
```

Expand All @@ -56,7 +56,7 @@ def getAutonomousCommand():
path = PathPlannerPath.fromPathFile('Example Path')

# Create a path following command using AutoBuilder. This will also trigger event markers.
return AutoBuilder.followPathWithEvents(path);
return AutoBuilder.followPath(path);
```

</tab>
Expand Down Expand Up @@ -149,7 +149,7 @@ frc2::CommandPtr DriveSubsystem::followPathCommand(std::string pathName){
```Python
from pathplannerlib.path import PathPlannerPath
from pathplannerlib.commands import FollowPathWithEvents, FollowPathHolonomic
from pathplannerlib.commands import FollowPathHolonomic
from pathplannerlib.config import HolonomicPathFollowerConfig, ReplanningConfig, PIDConstants
# Assuming this is a method in your drive subsystem
Expand Down Expand Up @@ -255,7 +255,7 @@ frc2::CommandPtr DriveSubsystem::followPathCommand(std::string pathName){
```Python
from pathplannerlib.path import PathPlannerPath
from pathplannerlib.commands import FollowPathWithEvents, FollowPathRamsete
from pathplannerlib.commands import FollowPathRamsete
from pathplannerlib.config import ReplanningConfig, PIDConstants
# Assuming this is a method in your drive subsystem
Expand Down Expand Up @@ -357,7 +357,7 @@ frc2::CommandPtr DriveSubsystem::followPathCommand(std::string pathName){
```Python
from pathplannerlib.path import PathPlannerPath
from pathplannerlib.commands import FollowPathWithEvents, FollowPathLTV
from pathplannerlib.commands import FollowPathLTV
from pathplannerlib.config import ReplanningConfig, PIDConstants
# Assuming this is a method in your drive subsystem
Expand Down

0 comments on commit aa883be

Please sign in to comment.