Go to Post Before anyone accuses FIRST of being in the pocket of the sponsoring corporations, they might spend a minute and a half to actually apply some of that critical analytical ability that we are supposed to be demonstrating as educated engineers. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2015, 12:52
RobotMonkey RobotMonkey is offline
Registered User
FRC #1413
 
Join Date: Jan 2015
Location: United States
Posts: 7
RobotMonkey is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2015, 13:06
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Need Help Limiting Max Joystick Input

Quote:
Originally Posted by RobotMonkey View Post
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


Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2015, 15:06
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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