I’m working in a C++ CommandBased project and I want to create a command that can select between running different commands. From what I can tell from the docs the [SelectCommand](Command Compositions — FIRST Robotics Competition documentation class is what i’m looking for. I cannot for the life of me understand how I’m supposed to implement this. I searched on github and nobody seems to have ever used it in a public repo.
My current implementation so far is here https://github.com/4698RaiderRobotics/FRC-2023/blob/a06b1d5944772b4dede575e30a7ef36fe8cce96f/src/main/cpp/commands/LedCommands/LedIdle.cpp#LL15C1-L15C1 but honestly I don’t know where to go from here.
Please ask me questions if I need to provide any follow up information.