team8 / FRC-2021-Public

1 stars 0 forks source link

Constrain Mechanisms #25

Open aoberai opened 3 years ago

aoberai commented 3 years ago

Was thinking about this a bit but it would be good to modify our architecture such that there is a predicate check for each mechanism in each subclass in Hardware Adapter which "constrains" mechanisms such that a subsystem can never calculate an output that would result in the breakage of the mechanism from the software side. This would be implemented at the start of development and would be checked each frame before writing an output within the update methods in HardwareWriter. It serves as an extra check on the controller output as computed by the subsystem.