View unanswered posts | View active topics It is currently Mon Apr 21, 2014 11:12 am






Reply to topic  [ 2 posts ] 
Joystick issues in RobotC V3.02 - help! 
Author Message
Rookie

Joined: Fri Dec 30, 2011 2:49 am
Posts: 3
Post 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.


Tue Jan 03, 2012 9:16 am
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:42 am
Posts: 593
Post 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.

_________________
Timothy Friez
ROBOTC Developer - SW Engineer
tfriez@robotc.net


Mon Jan 09, 2012 4:21 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.