We are a rookie team, and have gone through the tutorials and forums, and finally got a signal through to our motor controllers. When we try to adjust the output to a motor, however, the controller just sees neutral. We have looked at the setup menu for the driver station, and can tell when a button is pushed on the joystick, but nothing happens when we adjust on either axis. Could someone provide insight for fixing this problem?
We’d have to see your code in order to give useful help. Can you show us what you’ve done and tell us what you expect it to be doing? I expect that you’ve only changed Begin, Teleop, and Finish, though it’s quite possible that you only needed to make changes in Teleop.
A copy of our code is attached. Our understanding was that you could have joystick recognition in the default setting and then input a motor control that would work. The only area that we changed was the teleop VI.
kdbd.doc (71 KB)
kdbd.doc (71 KB)
What was wrong with the default code that was already in Teleop.vi? Was it not working?
Lose the Watchdog and the Driver station Start Comm/Stop Comm.
The Joystick open and Motor Open need to be moved to Begin.vi where you will find other examples. The references are passed just like they are for Joystick 1.
The USB 1 you have is already being used by the default code for your drive motors. Using it again breaks your motors.
Your closes need to be moved to Finish.vi where all the other closes are placed.
Sorry for the late reply, but thanks for all of the input. It got us going in the right direction and now we seem to be cooking.