Skip to content

Enhance HAL_Shutdown to actually reset HAL #3205

Open
@virtuald

Description

@virtuald

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.

  • HAL_Shutdown should be moved out of extension.h

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):

  • Command scheduler should reset itself
  • SendableRegistry should reset itself
  • NetworkTables would be nice, but I think it'll have to stay separate

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: halHardware Abstraction Layertype: fixIterations on existing features or infrastructure.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions