DIRECTIONAL TANK ROBOT DUAL WHEEL STEERING

Hello i am looking for help on code i found on this forum ive changed it to work on an arduino uno from the tiny it was originally designed for. I cant remember what else ive changed but since it was posted as open source i am letting everyone know my changes and also contribution.

I got it to work great now but it is glitchy. After a couple of changes in direction it freezes up and continues to send pmw no matter where the joystick is. I will put some delays to see what it does. Other than that its changing direction and maintaining the logic well.

Someone else try a different approach?

Im thinking of adding code to improve on the blend for direction. Its rough for a big vehicle. Lots of waste in current

The problem with the code in reply #1 is that there are no braces surrounding the blocks in the if / else if chain. The fact that you made that mistake at all points to your having close to zero experience with Arduino or C++ code. In that case, I would spend some time with some tutorials and examples and learn the basics of the language before I tried to start hacking together code. A few hours of boring study now learning the language will save you days worth of pulling out your hair later.