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.
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 inRobotContainer
.