![]() |
FunctionalCommand - Printable Version +- Error Code Xero Team Forum (https://www.xeroforum.org) +-- Forum: Software Subteam (https://www.xeroforum.org/forum-11.html) +--- Forum: 2024 WPILIB CMD Project (https://www.xeroforum.org/forum-13.html) +--- Thread: FunctionalCommand (/thread-21.html) |
FunctionalCommand - bwg - 04-17-2024 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 |