|
Java Command Based Layout - Using a Command Twice
Looking at examples of command based robots online, I noticed that most people tend to instantiate commands within the subsystem that uses them.
Our code has two drive related subsystems, one for the strafe motor and one for the tank drive motors. Both of these subsystems use the same command- Drive.
I have a feeling that a single command shouldn't be instantiated twice. Is the correct solution to use different commands? Or is it not proper convention to make these separate subsystems?
|