Quote:
Originally Posted by Carl
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".