View Single Post
  #4   Spotlight this post!  
Unread 04-02-2013, 14:43
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: labVIEW joystick connection issues

Quote:
Originally Posted by Carl View Post
The existing code only runs 1 motor controller. We can't get the other controller to respond no matter where it is plugged in. We know it works because we changed the second controller to the slot where the first has been working and all is golden.
What did you change in the code to run a second motor?

Quote:
We duplicated all the joystick code in teleop.vi and went in and changed it to USB2 (where the second joystick is attached),
That's exactly half of what you need to do. The other half is to give the RefNum for the second joystick a unique name like "Joystick 2", where the first one is "Joystick 1".

Quote:
and duplicated all the linked modules, adjusting them where we could find to adjust them to try and control the other side.
What does "duplicated all the linked modules" mean?

Quote:
Now, the dashboard thinks it has 2 joysticks, but just 1 of them is making any feedback on the readouts. The Driver Station recognized we have both joysticks attached, but LabView isn't the most intuitive at digging through pre-existing code.
There's a section in the code which sends the joystick values to the Dashboard. You should duplicate that for the second joystick, changing the obvious "1" in the string constant for the SmartDashboard name to "2".
Reply With Quote