View Single Post
  #7   Spotlight this post!  
Unread 29-01-2008, 21:11
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Joystick Programming

if you look in the default code you will see lines like

Code:
pwm01 = p1_y
pwm02 = p2_y
pwm is the term for each of the moters. p1_y and p2_y are joystick 1 & 2 on the y axis. These give you a value between 0 and 255, with 127 being neutral. To adjust the sensitivity you can take the joystick input and apply a little bit of math and what you set the motors to will be less.

I will give you a link to a thread I posted in a couple of weeks ago on this.

Edit: http://www.chiefdelphi.com/forums/sh...ad.php?t=61929
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -