Basic 2-motor joystick control program

I had trouble finding a simple, and basic, 2-motor control program for x-y control of the T100 thrusters to use on my ROV project. I am new to C so I had to keep it very simple. I just wrote my own program which works very well with the BR ESC’s. It is attached for your use if your just getting started.

Richard

basic-two-motor-control-program-for-an-x (13.4 KB)

There is an error in the above attached program. Beginning of loop() should read:
xJoyVal = analogRead(xPin);
yJoyVal = analogRead(yPin);
//Map Arduino analog read to desired output to ESC’s
xJoyVal = map(xJoyVal, 0,1023,1100,1900);
yJoyVal = map(yJoyVal, 0,1023,1100,1900);

Richard