Quote:
|
Originally Posted by Andy A.
The work around is to calibrate your Victors to each joystick. The process is pretty simple, and can do wonders for drivabilty. Basically what happens is that the victor looks at the outputs from the joystick as you move it from physical stop to stop, and then scales its (the victors) outputs to match. It accomplishes the same thing that your programmer may have done, but in a much simpler manner.
|
No, the workaround is as Sven stated, fix the range in software. All you need to do is determine the min & max values of each joystick axis and create a function that linearly maps the smaller joystick range to the full 0-254 range. Just make sure you have two mapping functions, one for below 127 and one for above. Then calibrate your speed controllers for the full 0-254 range. We've been using this method for at least 3 years.
The reason to fix this in software instead of the speed controller is in the cases of autonomous or feedback control. If the speed controllers that handle your arm joint are calibrated for a smaller range of 30-245 (typical values I've seen for the y-axis) then your feedback code is only effective over that range. Any numbers outside the range will not make the arm drive faster, and if your feedback routine wants to drive the arm slightly slower than full reverse (say a pwm value of 20) it will still be going full reverse.