View Single Post
  #1   Spotlight this post!  
Unread 18-01-2007, 18:42
hanan hanan is offline
Registered User
no team
 
Join Date: Jan 2007
Location: Israel
Posts: 14
hanan has a spectacular aura abouthanan has a spectacular aura about
Question 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?