ROBOTC.net forums
http://www.robotc.net/forums/

Joystick issues in RobotC V3.02 - help!
http://www.robotc.net/forums/viewtopic.php?f=52&t=3949
Page 1 of 1

Author:  clchanin [ Tue Jan 03, 2012 9:16 am ]
Post subject:  Joystick issues in RobotC V3.02 - help!

I have found that the button commands are not corrosponding to the button location on the joystick. I am using the Logitech F310 joystick with the switch in the "D" position. For example, I have a command to a servo specified for button 5 and find that the command works with button 4. I have already reverted from V3.04, due to joystick issues, to V3.02.

Author:  tfriez [ Mon Jan 09, 2012 4:21 pm ]
Post subject:  Re: Joystick issues in RobotC V3.02 - help!

Remember that if you are reading from the joystick bitmap directly, that index "0" returns a value of "1".

If using the Btn commands, remember that we "-1" the index. So because the old logitech controller had button "0" labeled as button "1", users would have to say Joy1Btn(1) to access button index zero.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/