Quote:
i have 2 questions
1. where do i splice in the code you gave me i was looking through the code i cant see where to put it.
2. do i connect the user interface to my computer for running the labview program.
|
If you are using MPLAB, you will see (in the default code) where the joystick values are read, then the resulting values are assigned to the Victor pwm output variables. So you put the joystick code JUST AFTER the joystick value is read. You will have to make your own decisions for variable names, etc. And the code I provided is only for one joystick axis - you will have two joystick axes, so will need twice the amount of code.
Labview is a graphical development environment that runs on your PC. A copy of Student Labview was included in the KOP this year. I am attaching a screen shot of the Labview program running the Joystick application - you will get the idea that it is only useful to ILLUSTRATE how joystick values might be processed. The simulated joystick input is the horizontal slider at upper left. The three scales below show linear (direct), exponential, and logarithmic conversions.