Testing out things with a joystick. I am able to capture where the joystick is pointing and assign a value to it. This will be useful for references instead of calculating range between 0-1023, specially when looking at Y axis.
I need to figure out how to incorporate X and Y axis , capture these valus and assigned specific motor speed direction.
Example.
With 1 joystick I would be abl to control a small tank that runs on 2 seperate motors, when user point joystick to upper right then one of the motor speed should lower so that the tank turns slightly to right keeping same forward speed. This should be applied to all directions.
So far I have been close to the solution but I think that the switch in the Sabertooth needs to be in upper position so it does not run on diferential mode.
, https://i.ytimg.com/vi/Pd1_dmR7AlA/hqdefault.jpg
source
Hello, can you please send me your program. Thank's
jarist17@gmail.com