Go to Post Besides, if you look back on anything you've already made and can't find any flaws that can be improved, you're doing it wrong. - artdutra04 [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
  #16   Spotlight this post!  
Unread 01-01-2011, 12:44
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
Re: paper: joystick sensitivity (gain) adjustment

Quote:
Originally Posted by Roger View Post
Yesterday I gave this to one of my programmers to put into our LabVIEW code, as a sort of a warm-up exercise. An added bonus was making it a sub-vi to plug into future code.

There is a difference in driving, though perhaps not enough to change a good driver with careful joystick control. We didn't test it fully however.

Which one did you try? The one with just tunable sensitivity, or the one with both sensitivity and inverse deadband tuning parameters?

If you use the one with 2 tunable parameters, you could use three buttons to tune the two parameters: one button to bump parameter "a" up/down; one button to bump parameter "b" up/down; and a third button to select up/down.



Reply With Quote
  #17   Spotlight this post!  
Unread 01-01-2011, 13:55
Roger Roger is offline
Registered User
FRC #1153
 
Join Date: Jan 2006
Rookie Year: 1900
Location: Walpole MA
Posts: 683
Roger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond repute
Re: paper: joystick sensitivity (gain) adjustment

Oh dear, I'm way behind, aren't I? We were using the original y = a(x^3) + (1-a)x formula. That "2parm" looks interesting for Monday's programming session.

I think we might be running out of joystick buttons. We've got 2 buttons already for switching gear speed up and down -- yet another parameter in the mix, as "Full cubic" in first gear is really slow.

Another thing I might mention is that we are changing only the "forward/backward" axis of the joystick, and the "left/right" axis is not being changed. (The robot is a standard drive left/right sides.) General thought of the group is that this gives full turning power always.
Reply With Quote
  #18   Spotlight this post!  
Unread 01-01-2011, 17:17
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
Re: paper: joystick sensitivity (gain) adjustment

Quote:
Originally Posted by Roger View Post
...the "left/right" axis is not being changed...General thought of the group is that this gives full turning power always.
Perhaps this is the result of a misunderstanding. Just to be clear: You would still have "full turning power" if you used this sensitivity adjustment for the turn axis.

Look carefully at the figures and the associated narrative. This filter does not reduce the maximum available output. It just changes the response curve to reduce the gain for small commands. The maximum output of the filter is +/-1 regardless of the values selected for the tuning parameters.

What kind of drivetrain are you using, and what type of driver interface?


Reply With Quote
  #19   Spotlight this post!  
Unread 01-01-2011, 17:35
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 800
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: paper: joystick sensitivity (gain) adjustment

This probably should go in another paper, but it helps handling a lot if you get some speed vs PWM data, and then curve fit it so that you can convert the nonlinear response of the Victors to a nicer linear response. I ended up using a 7th order polynomial last year to do that, and it helped quite a bit.
Reply With Quote
  #20   Spotlight this post!  
Unread 01-01-2011, 17:53
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
Re: paper: joystick sensitivity (gain) adjustment

Quote:
Originally Posted by AustinSchuh View Post
This probably should go in another paper, but it helps handling a lot if you get some speed vs PWM data, and then curve fit it so that you can convert the nonlinear response of the Victors to a nicer linear response. I ended up using a 7th order polynomial last year to do that, and it helped quite a bit.
Would you be willing to post your data? (Or maybe you already have?)


Reply With Quote
  #21   Spotlight this post!  
Unread 01-01-2011, 18:05
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 800
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: paper: joystick sensitivity (gain) adjustment

Quote:
Originally Posted by Ether View Post
Would you be willing to post your data?
Sure. I only tested it one direction and duplicated the data as you can see. The data isn't quite as clean as I would have liked, but it's not bad and worked well enough. I exploited the symmetry when I fitted it to avoid getting answers that didn't make much sense.

Code:
# Speed Power	Data on blocks.
0.103448	0.020000
-0.103448	-0.020000
0.252874	0.043000
-0.252874	-0.043000
0.333333	0.059000
-0.333333	-0.059000
0.454023	0.082000
-0.454023	-0.082000
0.517241	0.098000
-0.517241	-0.098000
0.614943	0.145000
-0.614943	-0.145000
0.724138	0.184000
-0.724138	-0.184000
0.793103	0.223000
-0.793103	-0.223000
0.885057	0.363000
-0.885057	-0.363000
0.965517	0.559000
-0.965517	-0.559000
1.000000	0.918000
-1.000000	-0.918000
Reply With Quote
  #22   Spotlight this post!  
Unread 01-01-2011, 20:16
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,544
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: paper: joystick sensitivity (gain) adjustment

By default, RobotDrive squares the inputs before it outputs the PWM, so you should consider the affects of that on any input adjustments.
Reply With Quote
  #23   Spotlight this post!  
Unread 01-01-2011, 21:44
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 800
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: paper: joystick sensitivity (gain) adjustment

Quote:
Originally Posted by Joe Ross View Post
By default, RobotDrive squares the inputs before it outputs the PWM, so you should consider the affects of that on any input adjustments.
If you are referring to the data that I provide, that was generated using the victor.Set function, rather than passing it through the RobotDrive.
Reply With Quote
  #24   Spotlight this post!  
Unread 04-01-2011, 11:22
Roger Roger is offline
Registered User
FRC #1153
 
Join Date: Jan 2006
Rookie Year: 1900
Location: Walpole MA
Posts: 683
Roger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond reputeRoger has a reputation beyond repute
Re: paper: joystick sensitivity (gain) adjustment

Quote:
Originally Posted by Ether
What kind of drivetrain are you using, and what type of driver interface?
It's our 2009 robot with skid steer/tank drive; see this photo. We're using LabVIEW and the standard KOP joysticks and driver station. A single joystick does the driving. The robot drive has the drill-type gear shifter (1st and 2nd gear only; 3rd gear was too fast for Lunacy's floor.)

Adding the second axis to the formula won't be a problem. It was more of "let's get one working first, then add the second." But now that you wrote it out, it makes sense that full power is always possible. We just ran out of time to do the changes.

This was a perfect project as a warm-up, with just enough learning joystick interfacing, sub-vi creation, and math programming, to get done in an hour then debug and change and test after. Adding the different modes and deciding which is "best" will be fun.

There are also two different drivers that we have to program for, and not for the same time. The first (and obvious) is the high school competition driver, who has practice driving with the robot. The second, more unpredictable, driver is the off-season "carnival" driver, a wanna-drive-the robot seven-year-old that throws the joystick all over the place. The former is easy, the latter we can only slow down the action so the robot doesn't crash too much.
Reply With Quote
  #25   Spotlight this post!  
Unread 20-06-2014, 17:59
jhebbel jhebbel is offline
Registered User
no team
 
Join Date: Jun 2014
Location: Florida
Posts: 2
jhebbel is an unknown quantity at this point
Re: paper: joystick sensitivity (gain) adjustment

Sorry to revive a more than dead thread but its really the only relevant thread I could find. Im intrigued by the b + (1-b)*[a*x^3 + (1-a)*x] equation, but also confused, doesnt this need to be formated to solve for x and not y? Has anybody done this yet?
Reply With Quote
  #26   Spotlight this post!  
Unread 21-06-2014, 08:00
jhebbel jhebbel is offline
Registered User
no team
 
Join Date: Jun 2014
Location: Florida
Posts: 2
jhebbel is an unknown quantity at this point
Re: paper: joystick sensitivity (gain) adjustment

For anybody else that lands here from Google like I did wondering the similar, The reason I though the equation needed to be formatted to solve for X is I didn't realize this was for inverse deadzone, to calculate for traditional deadzone it is y=G*((x-D)/(1-D))^3+(1-G)*(x-D)/(1-D); Where X is in value, D is Deadzone and G is Gain.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Joystick Sensitivity furiousgeorge NI LabVIEW 15 04-02-2014 23:10
joystick sensitivity adjustment Ether Programming 3 19-02-2010 00:07
joystick sensitivity gabrielse Programming 2 08-02-2008 14:52
Joystick sensitivity Philz20 Programming 10 24-01-2008 08:34
White Paper Discuss: Joystick Sensitivity Demystified - Version 2 marccenter Extra Discussion 0 28-02-2005 16:54


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