Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FunctionalCommand
#1
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
Reply


Messages In This Thread
FunctionalCommand - by bwg - 04-17-2024, 04:46 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)