After messing around with PROS IDE a bit, I made a couple of programs, the main one that I wanted to check that I was doing right was controlling motors using the joysticks.
Is it in any way possible that someone could send me a basic tank drive code to check off some of my code?
It’s a deadband, so if the joystick is between -5 and 5, the motors get set to 0. This prevents the motors from making a high-pitched whining when the robot is on and not moving.
That part of the code checks if the joystick is between -5 and 5 and doesn’t power the motor with those low values. It is a deadband to stop the motors from getting power that you don’t mean to send.