Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Need Help Limiting Max Joystick Input (http://www.chiefdelphi.com/forums/showthread.php?t=134490)

random.hero 13-02-2015 11:25

Need Help Limiting Max Joystick Input
 
1 Attachment(s)
I'd like to limit the maximum power that our joystick outputs at 100% push down to say 50% output or so. I've attached a pic of our code as I apparently do things a little bit differently than others do as far as coding my joysticks. Any help would be appreciated. Thanks!

Ether 13-02-2015 11:39

Re: Need Help Limiting Max Joystick Input
 
Quote:

Originally Posted by random.hero (Post 1443262)
I'd like to limit the maximum power that our joystick outputs at 100% push down to say 50% output or so.

It seems there are quite a few teams wanting to limit motor voltage at the 11th hour. Bad choice of gearing maybe?

http://www.chiefdelphi.com/forums/sh...d.php?t=134474




random.hero 13-02-2015 11:41

Re: Need Help Limiting Max Joystick Input
 
Last minute change of drive system from 6 super grips to 4 mechs. Too much power/speed now so want to tame it a little bit.

RobotMonkey 13-02-2015 12:52

Re: Need Help Limiting Max Joystick Input
 
Fastest way is to just multiply each of the axes going into the drive by some constant between 0 and 1. If you wan to halve it, multiply each by 0.5

Ether 13-02-2015 13:06

Re: Need Help Limiting Max Joystick Input
 
Quote:

Originally Posted by RobotMonkey (Post 1443332)
Fastest way is to just multiply each of the axes going into the drive by some constant between 0 and 1. If you wan to halve it, multiply each by 0.5

Just so that rookie teams contemplating doing this do so with eyes wide open:

http://www.chiefdelphi.com/forums/sh...2&postcount=25

http://www.chiefdelphi.com/forums/sh...4&postcount=19

http://www.chiefdelphi.com/forum/sho...30#post1426530



Alan Anderson 13-02-2015 15:06

Re: Need Help Limiting Max Joystick Input
 
That looks like code from last year. The 2015 Joystick functions return the axes and buttons as arrays, not as bundles.

viggy96 15-02-2015 00:32

Just use the multiply block and multiply the joystick input by a decimal before sending it to the drive block.

netmizor 15-02-2015 23:06

Re: Need Help Limiting Max Joystick Input
 
I believe this should work. Use the controls on the front end of the teleop.vi to establish desired top speeds then hard code them.



All times are GMT -5. The time now is 10:29.

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