So, when we start our competition program, our drive motors go very slowly all by themselves. I believe that it is caused by the joysticks not being perfectly centered. does anyone know how to fix this? Is there any way to tune a joystick’s sensitivity?
I tried the example that kevjar gave and it still moved forward without any user input on the joysticks. No matter what values that I inserted. What should I do?
Comment out the section off your code that controls the drive in order to see if it really is your joystick. then run it. If it is the joysticks, then your motors will not move, If the motors continue to move, it is an issue elsewhere.
We just tried a brand new controller right out of the box. and guess what? It still didn’t work!! Koby is really mad because it isn’t working. So, we don’t know what to do except to leave it possessed.
you need to stop the motors if the values from the controller are small. The code you have will stop sending new values to the motors but they will just continue to run at whatever that last value you sent to them.
Well see when I posted my deadzone code I left out the else statement after it where I tell the motors to stop with my preferred brake type. Probably should have mentioned that my bad.