View Single Post
  #30   Spotlight this post!  
Unread 24-02-2004, 20:26
iamjarret iamjarret is offline
Registered User
#1257
 
Join Date: Feb 2004
Location: New Jersey
Posts: 1
iamjarret is an unknown quantity at this point
Re: Programming joysticks

hey, i have a question
we plugged a motor to the pwn port that corresponds to p1_wheel(the wheel)
and teh operator interface shows that when we move the wheel, the values are changing (input), but it is not moving the motor. It is correctly mapped (pwm09 = p1_wheel

how can i get it to work



also, i would like to make code the made a pwm got to speen 255 when p4_sw_trig (trigger) is pushed(equal to 1).

my code so far is
if (p4_sw_trig == 1)
{
pwm12 = 255; (for this i commented out pwm12 = p4_wheel

i also tried p4_wheel = 255;

and i tried p4_wheel = 0xFC;


}

lastly, the y axis dose'nt work on ports 3 and 4 on any joystick i try



please help me fix my code, wheels, and y-axes

thanx