PathPlanner Logging

This commit is contained in:
Tyler Wilcox 2026-04-11 13:35:00 -04:00
parent b45ab87b34
commit 88153923d5
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ import com.pathplanner.lib.commands.PathPlannerAuto;
import com.pathplanner.lib.config.PIDConstants;
import com.pathplanner.lib.config.RobotConfig;
import com.pathplanner.lib.controllers.PPHolonomicDriveController;
import com.pathplanner.lib.util.PathPlannerLogging;
import edu.wpi.first.math.VecBuilder;
import edu.wpi.first.math.geometry.Pose2d;
@ -180,6 +181,9 @@ public class DriveSubsystem extends TestableSubsystem {
autoChooser.setDefaultOption("Do Nothing", Commands.none());
SmartDashboard.putData("Auto Chooser", autoChooser);
// PathPlannerLogging.setLogActivePathCallback((List<Pose2d> pose) -> {});
PathPlannerLogging.setLogTargetPoseCallback((Pose2d targetPose) -> { Logger.recordOutput("PathPlanner-TargetPose", targetPose);});
} catch (Exception e) {
e.printStackTrace();
}