Skip to content

Commit

Permalink
[#118] Pathfinding
Browse files Browse the repository at this point in the history
  • Loading branch information
MattD8957 committed Jan 19, 2024
1 parent 6283b22 commit 38c658e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions LightningRobot.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

import java.io.IOException;
import java.util.Properties;
import com.pathplanner.lib.pathfinding.LocalADStar;
import com.pathplanner.lib.pathfinding.Pathfinding;

/**
* Base robot class, provides
Expand Down Expand Up @@ -84,6 +86,7 @@ public void disabledPeriodic() {
@Override
public void robotInit() {
System.out.println("LightningRobot.robotInit");
Pathfinding.setPathfinder(new LocalADStar());

//Starts WPILIB data logging
DataLogManager.start("/home/lvuser/datalog");
Expand Down

0 comments on commit 38c658e

Please sign in to comment.