Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Limit motor speed (http://www.chiefdelphi.com/forums/showthread.php?t=82086)

zip100 06-02-2010 22:47

Limit motor speed
 
The robot we built is hard to control. I was wondering is there a way to limit the speed of the motors through labview? Thnx

Alan Anderson 07-02-2010 00:30

Re: Limit motor speed
 
Do you want to limit the maximum speed, as if you had an extra stage of reduction in a gearbox? That's easily done by multiplying the joystick values by a number less than one. You lose the ability to apply full power if you do that, so it might be a good idea to include the option to leave the joystick values alone if a "turbo" button (e.g. the joystick trigger) is pressed by the driver.

Do you want to change the response of the joysticks so that they are more sensitive at low speeds, but still go to full power when pushed all the way? That's a little more difficult, but still straightforward. Try multiplying the joystick value by itself three times, yielding the cube of its value. That response curve is something many teams have used in the past.

zip100 07-02-2010 01:17

Re: Limit motor speed
 
Im leaning towards the 2 choice. what do i hook up to the multiply terminals.

Greg McKaskle 07-02-2010 07:40

Re: Limit motor speed
 
Take the output of the joystick X and Y and use a Numeric multiply. For bonus points, plot the joystick output against the drive input to show your teammates the difference.

Greg McKaskle

Alan Anderson 07-02-2010 14:04

Re: Limit motor speed
 
1 Attachment(s)
Quote:

Originally Posted by zip100 (Post 914953)
what do i hook up to the multiply terminals.

Feed in the joystick axis value. The attached image shows you how to look at the way the cubed value changes as you move the joystick.

zip100 07-02-2010 15:29

Re: Limit motor speed
 
Thank you very much. Got it to work:D :D :D :D


All times are GMT -5. The time now is 11:57.

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