So, we are programming a command-based robot and are trying to attach our commands to buttons on our joystick. However, whenever we do this in the code and deploy, the DriverStation tells us the loop time is overrun by .02 seconds so the buttons never run the commands. Only the toggleWhenPressed() method works but we can’t just use this because its impractical.
You probably have some sort of loop or delay that is hanging your 50Hz update loops. You’ll need to either find that or post your code so we can help find it.