joystick sensitivity
Hi,
I am using easyC pro and I am confused.
Downloaded the 2007demo code.
1) Is there a way to read the outputs of the joystick according to a specific axis? (just like in mplab, where you have p1_y for joystick1, from Kevin's code). I want to be able to control only one axis at a time in order to drive like a tank. For now, I am using this "arcade2" or "arcade4" block, and its just like a black box for me. I want to be able to check for each bottom in the joystick, if it was pushed - to do something (like in mplab, but in easyC, without any block "OI to relay" or something like that)
2) Joystick is too sensitive. I want to be able to write:
setPWM(my_motor_pwm, joystick value corresponding to speed);
and not to use this arcade2 block that automaticly sends pwm from both axis, all time. don't want that.
I want the freedom to choose.
Can you help me guys?
|