What is AdvantageKit?
mainAdvantageKit is a logging framework designed for FRC (FIRST Robotics Competition) robot code. Unlike traditional logging frameworks that record a limited set of user-defined values (like sensor data or PID errors), AdvantageKit records all data flowing into the robot code every loop cycle (e.g., every sensor value and button press).
Because AdvantageKit captures the complete input stream, it enables high-fidelity log replay. This allows developers to:
- Replay match data in a simulator to exactly replicate robot behavior.
- Log extra fields after a match has concluded.
- Modify control pipelines to see how they would have functioned during the actual match.
- Use logging as a safety net to verify any part of the code's logic by re-running it against recorded inputs.