frc3512 / Robot-2020

The source code for the 2020 FRC robot.
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

Add conveyor logic unit test #97

Closed calcmogul closed 2 years ago

calcmogul commented 3 years ago

Make a unit test that tracks the positions of some fake balls, move them when the user logic tells the motor to move, and set the sensor state when a ball passes it using DigitalInputSim. The unit test would be enforcing some of the more basic logic defined in docs/intake-io-table.md.

KyleQ1 commented 3 years ago

This could also be working in combination with the flywheel using JoystickSim to further enforce the logic defined in docs/intake-io-table.md.

calcmogul commented 3 years ago

If we had a way to automate going from the intake I/O table to code, we probably wouldn't need unit tests of the conveyor logic impl, just a way to confirm the transformation was done correctly. It's basically the combo of a logic synthesizer and boolean algebra simplification steps.

calcmogul commented 2 years ago

OBE since season is now over.