Using Iterative Robot testing, testPeriodic()

Our code uses tests for things like solenoids and shifters and we want to use the robot sim to simulate those subsystems in our code when we test them.

Here’s the github: https://github.com/beavertronics/2020code5970

Run python3 test_shifters.py
to see what I mean when I say I want to use the sim solenoids for tests.
Anyway, I think the testPeriodic() function in robot.py would work but I’m not really sure how to use it to run our tests.

These are the basic tests that ship with pyfrc, you’d probably want to do something similar: https://github.com/robotpy/pyfrc/blob/master/lib/pyfrc/tests/basic.py

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.