Hi I am building a small skid steer drive surveillance robot and I haven't been able to find a code I can work off of that will suit my project.
I would like to control a Robot Power H bridge ( PWM is sent to one of two pins for each motor, one for forward, the other for reverse)
That in its self I understand and have found code for!
However I would like to accomplish this with one 2-axis joystick.
If the joystick were moved straight forward, both motors would go forward.
If the joystick were moved straight back, both motors would move backward.
If the joystick were moved left, the left motor would go backward, and the right would go forward
And.... the exact opposite when the joystick were moved to the right.....
I know such a code must exist (just like driving a tank on battlefield 3?)
Would someone point me into the right direction?
Thanks
Nick