Skip to content

Fix PathPlanner trajectory logging in sim#26

Merged
nlaverdure merged 1 commit into
main-2027-alpha6from
fix/pathplanner-sim-logging-alpha6
Jul 24, 2026
Merged

Fix PathPlanner trajectory logging in sim#26
nlaverdure merged 1 commit into
main-2027-alpha6from
fix/pathplanner-sim-logging-alpha6

Conversation

@nlaverdure

Copy link
Copy Markdown
Member

Cherry-pick of #25 onto main-2027-alpha6.

Summary

  • Fixes PathPlanner trajectory logging in simulation

🤖 Generated with Claude Code

- Store the active PathPlanner path in a lastTrajectory field (updated by the callback) instead of calling Logger.recordOutput directly from the callback
- Log Odometry/Trajectory every periodic() loop for AdvantageKit compatibility
- Only update lastTrajectory when the incoming path is non-empty, so the plot persists in AdvantageScope after the path command ends
- Removes unused setLogTargetPoseCallback / Odometry/TrajectorySetpoint

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@nlaverdure
nlaverdure merged commit f4c23a0 into main-2027-alpha6 Jul 24, 2026
3 checks passed
@nlaverdure
nlaverdure deleted the fix/pathplanner-sim-logging-alpha6 branch July 24, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant