|
Re: [C++] Problems running Sparks with Logitech controller
Your problem is simple (and very common). One button either sets the motors running or turns them off. So does the other button. So you're turning them on and off at essentially the same time.
The fix is simple too: only turn off the motors when both buttons are released. Move the .Set(0.0) lines to their own if statement that tests for (!collectButton && !fireButton).
|