04-17-2024, 04:46 PM
All,
As you know I am learning this command framework along side you all.
We talked about how runOnce() only really runs the initialization() method of a command.
There is an object called FunctionalCommand that takes four functions, initialize, execute, end, and isFinished (and optionally requirements).
If you find yourself creating a command just to calle methods on a subsystem for some combination of these four functions, use the FunctionalCommand.
Thanks
Butch
As you know I am learning this command framework along side you all.
We talked about how runOnce() only really runs the initialization() method of a command.
There is an object called FunctionalCommand that takes four functions, initialize, execute, end, and isFinished (and optionally requirements).
If you find yourself creating a command just to calle methods on a subsystem for some combination of these four functions, use the FunctionalCommand.
Thanks
Butch