Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   how to limit speed on the motors. (http://www.chiefdelphi.com/forums/showthread.php?t=73790)

haxor5354 07-02-2009 00:24

how to limit speed on the motors.
 
self explanatory. how to make the motors run at a limited speed with labview?

RyanN 07-02-2009 00:48

Re: how to limit speed on the motors.
 
1 Attachment(s)
Try this:
Attachment 7340

I'm not sure if it will work or not, but it certainly makes sense to me.

Greg McKaskle 07-02-2009 07:51

Re: how to limit speed on the motors.
 
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.

Greg McKaskle


All times are GMT -5. The time now is 02:19.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi