Go to Post I'm pretty sure there is a federal sequester on the bandwidth coming out of LSR. - PayneTrain [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2010, 10:02
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,995
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
joystick sensitivity adjustment

Here's a simple algorithm to add sensitivity adjustment to your joystick:

x' = ax^3 + (1-a)x

x is a joystick output ranging from -1 to +1

x' is the sensitivity-adjusted output (also will be -1 to +1)

"a" is a variable ranging from 0 to +1

When a=0, you get x' = x

When a=1, you get x' = x^3 which gives very fine control of small outputs

When a is between 0 and 1, you get something in between. See the GIF file screenshot.

So by adjusting a, you can find the right sensitivity for your driver.

You can find the right value of "a" by trying different values, and then hard-code it, or

If you have a joystick with a "throttle" control (like we do), you can use the throttle control to set the value of "a" (so the driver can adjust it whenever he wants).

~
Attached Thumbnails
Click image for larger version

Name:	blended x3.gif
Views:	437
Size:	4.5 KB
ID:	8706  
  #2   Spotlight this post!  
Unread 17-02-2010, 11:09
adamdb adamdb is offline
Registered User
#1583
 
Join Date: Feb 2005
Location: Parker, CO
Posts: 63
adamdb has a spectacular aura aboutadamdb has a spectacular aura aboutadamdb has a spectacular aura about
Re: joystick sensitivity adjustment

Awesome! I fly model airplanes also and frequently use "expo" on my models to improve the flyability. I've been wanting to figure out how to do it on our robot and this looks like just the trick.

Thanks for sharing!
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics
  #3   Spotlight this post!  
Unread 17-02-2010, 13:33
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,509
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: joystick sensitivity adjustment

We worked with that for a while, but found that an exponential curve resulted in too gentle a curve around the Zero point, and hence too large a deadband.

Instead we moved to linear formulas (using 2 X/Y coordinates that we set up as controls in Labview so they could be tuned on the fly).

You can fix the deadband by changing your Y intercept too. It's fun to play with functions like that.
  #4   Spotlight this post!  
Unread 19-02-2010, 00:07
adamdb adamdb is offline
Registered User
#1583
 
Join Date: Feb 2005
Location: Parker, CO
Posts: 63
adamdb has a spectacular aura aboutadamdb has a spectacular aura aboutadamdb has a spectacular aura about
Talking Re: joystick sensitivity adjustment

We implemented this algorithm on our holonomic drive and it works a ton! I love it! Thanks again for posting this!
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Joystick Sensitivity furiousgeorge NI LabVIEW 15 04-02-2014 23:10
joystick sensitivity gabrielse Programming 2 08-02-2008 14:52
Joystick sensitivity Philz20 Programming 10 24-01-2008 08:34
joystick sensitivity hanan Control System 4 19-01-2007 05:36
joystick sensitivity Team 668 Programming 11 16-02-2005 18:45


All times are GMT -5. The time now is 17:20.

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