logging: persist AdvantageKit stream to disk with WPILOGWriter - #7
Open
AdamEXu wants to merge 1 commit into
Open
logging: persist AdvantageKit stream to disk with WPILOGWriter#7AdamEXu wants to merge 1 commit into
AdamEXu wants to merge 1 commit into
Conversation
Until now the only AdvantageKit data receiver was NT4Publisher, so all telemetry (swerve states, odometry, mechanisms) was streamed live to AdvantageScope and never written anywhere — no .wpilog files exist from the entire 2026 season. Add WPILOGWriter so real-robot runs log to /U/logs on a USB stick (logs/ folder in simulation). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
WPILOGWriteras a second AdvantageKit data receiver inRobot.java(2 lines + comment). Real-robot runs now write the full AdvantageKit stream to/U/logson a USB stick (falls back to roboRIO storage without one); simulation writes to a locallogs/folder.Why
The only receiver was
NT4Publisher, so everyLogger.recordOutput— swerve module states, odometry/pose, turret/shooter/intake/climber, vision — was streamed live to AdvantageScope and never persisted. We have zero.wpilogfiles from the entire 2026 season; the only surviving telemetry is REVLib's auto-written.revlogCAN logs, which carry no drivetrain or pose data. This one-liner is what was missing.Notes
WPILOGWriter+NT4PublisherbeforeLogger.start()); no-arg constructor verified against akit-java-26.0.0.SignalLoggerintentionally not enabled: WPILOGWriter covers everythingrecordOutputproduces, and hoot logging risks filling RIO flash when no USB is present../gradlew compileJavaBUILD SUCCESSFUL./U/logs(seePWRDrive/docs/swerve_log_collection.mdfor the full collection protocol).🤖 Generated with Claude Code