I have a shoot command for our shooter. Its mapped to the X button. When I hit the x button, the motors just twitch. This would make me think there is a different command that’s requiring the shooter subsystem that’s currently running, but there isn’t. I have two shoot commands, but only one is done and its the only one that has the shooter subsystem declared as a requirement. I’ve looked all over the code trying to find somewhere in which the motors are set to a different value than what the command is saying, but I cannot find it. My command is as follows, where startShooter and startFeeder are just methods to set both motors to full power inside of the shooter subsystem.
public void shootOne(){ startShooter(); startFeeder(); new WaitCommand(2); stopShooter(); stopFeeder(); }
The command im trying to use is an “InstantCommand”, but I have tried using both types of commands. the “shootOne()” method is currently being called in the initialize method of the InstantCommand. I’m typing this in school because I’d like to have an answer for tonight, so if you can’t understand anything I say or need more code please just ask and I’ll respond ASAP. Every other command works fine.