View Full Version : how to limit speed on the motors.
02-07-2009, 12:24 AM
self explanatory. how to make the motors run at a limited speed with labview?
02-07-2009, 12:48 AM
I'm not sure if it will work or not, but it certainly makes sense to me.
02-07-2009, 07:51 AM
I'm not sure if the question was related to joystick axis input, but that is what I'll assume.
A useful function for doing what was shown in the previous post is the In Range and Coerce function. You wire your value into the middle, and you wire your max and min in as well. You can right click on it to set whether the endpoints are included. This will work to clip your inputs.
Perhaps a better approach for the joystick is to rescale the joystickinput to a different numerical range. To do this, instead of having the joystick go from -1 to 1, perhaps you divide by 2. Not everything on the joystick is less and the joystick's full limits are only half.
Another approach that may be worth trying if you like playing with the math is to use something nonlinear. Since the joystick is in the range of -1 to 1, by squaring it, you stay in that range, but change the shape to a parabola. This will give finer control near center, but full range near the edges. You can even go crazy with the yTox function to get other shapes.
vBulletin® v3.6.4, Copyright ©2000-2014, Jelsoft Enterprises Ltd.