add_pid_unit_tests
Purpose
Add unit tests for the PIDController class to improve code coverage and prevent regressions.
Summary
This PR adds 10 automated pytest unit tests for the PIDController class, ensuring its core functionalities are validated:
- Initialization (scalar and list parameters)
- Reset behavior
- Basic update step
- Override mode
- Freeze integrator mode
- Control output clipping
- Error integral property
- Feedforward gain
- Speed interpolation behavior
Verification
- All tests pass locally with
pytest.
Command used for testing:
pytest common/tests/test_pid.py
This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity.
@maxime-desroches could you review this PR, please?
This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity.
This PR has been automatically closed due to inactivity. Feel free to re-open once activity resumes.