Open HarryXChen3 opened 9 months ago
You can use the simulation classes from WPILIB to step time forward and invoke specific responses from the DS, RobotState, RobotController, etc.. classes.
Gonna look into this soon hopefully, it would be nice if we didn't have to manually verify that changes to the swerve do not affect behavior in simulation.
It would be cool for swerve to have integration tests, or integration tests for the entire robot - this is particularly useful to ensure that autonomous routines still work or do what you expect them to (after code changes) in simulation, without needing a physical robot.
Additional information would probably be good here, as I'm not sure what the actual implementation would look like - will fill out with more info later.