MSMHS-Robotics / FRC-2020

FRC 2020: Infinite Recharge Robot Software
1 stars 0 forks source link

Unit Tests #118

Open danielbrownmsm opened 4 years ago

danielbrownmsm commented 4 years ago

Unit Tests.

Unit Tests. (unit tests). Unit unit tests tests

Might be possible to do by making separate constructors for functions. One accepts normal types (ex CANSparkMax) and one that accepts Rocket Types (TM). Rocket Types implement everything the normal types do (well, almost everything. Only the stuff we use) but instead of returning real-life values, they return Preset Values (R) and can be written to (ex motor.set(1)) As Usual (R). We can decide which to use by reading something from Constants.java (or elsewhere) and having an if/else in RobotContainer.