wpilibsuite / allwpilib

Official Repository of WPILibJ and WPILibC
https://wpilib.org/
Other
1.05k stars 612 forks source link

Enhance HAL_Shutdown to actually reset HAL #3205

Open virtuald opened 3 years ago

virtuald commented 3 years ago

Is your feature request related to a problem? Please describe. RobotPy wants integration tests that can be ran in a single process with multiple robot class resets.

Describe the solution you'd like Add all simulation reset knowhow to HAL_Shutdown. This stuff will need to re-arm HAL_Shutdown so that it can be called after each test.

Additional context I'm going to implement an initial version in RobotPy's HAL, and we'll see what issues we run into. Thing I know will need to add themselves to HAL_Shutdown (will add to this list over time):

Starlight220 commented 1 year ago

@virtuald what's the current status of this? I remember seeing multiple shutdown-related PRs. What still needs to be done?