TechnoTitans / TitanWare2024

Crescendo 2024
Other
3 stars 1 forks source link

Swerve integration tests #11

Open HarryXChen3 opened 9 months ago

HarryXChen3 commented 9 months ago

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.

HarryXChen3 commented 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.

Image Image

HarryXChen3 commented 8 months ago

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.