So we are trying to map a ramsete command to a button for testing purposes. Whenever we press the button to run the command, it crashes and says a command that is part of a command group can’t be independently scheduled. So far we’ve tried two approaches but got the same errors. In our path command file (snakepath.java), we made it extend a normal command base and included a static trajectory and static ramsete command object that was passed in through the button bindings. That didn’t work, so the second thing we did was make the snake path class extend ramsete command and in the constructor we passed in the trajectory we wanted, then created a new instance of the actual snake path class in the button bindings, and then we got the same errors.
This is really weird, because when we defined a ramsete command in the same file of the buttoncontainer and passed it in there, our code worked.
Here is the code: https://github.com/SOTACyberdragons/frc-robot-2022