View Single Post
  #3   Spotlight this post!  
Unread 17-02-2007, 10:32
Kristian Calhoun's Avatar
Kristian Calhoun Kristian Calhoun is offline
Celebrating 20 years of 25
FRC #0025 (Raider Robotix)
Team Role: Mentor
 
Join Date: Oct 2005
Rookie Year: 2006
Location: No. Brunswick, NJ
Posts: 1,077
Kristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond reputeKristian Calhoun has a reputation beyond repute
Send a message via AIM to Kristian Calhoun
Re: number of joysteaks...

Quote:
Originally Posted by joesmomh00haha View Post
hey I'm israeli too. my family lives in or yehuda. yes you can have 3 joysticks, you can even have up to 4 joysticks and it is written in the code as:

p_1
P_2
P_3
P_4
the p is the port which you can plug in the joystick to. if you want to program buttons, you will have to mess around with the code.

P.S. you spelled joysticks wrong. peace in the middle east my friend.
It should actually be:

pwm## = p1_y;
pwm## = p2_y;
pwm## = p3_y;
pwm## = p4_y;

Or if you're using the X axis of the joystick, then use p1_x; etc.
__________________
Raider Robotix: Home | Twitter | Facebook | Instagram
Brunswick Eruption: Home | Twitter | Facebook