Go to Post You can lay out all the disclaimers that you want, but the bottom line is you are representing your team. - Karthik [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 18-01-2006, 12:05
naor52 naor52 is offline
Registered User
FRC #1578
 
Join Date: Dec 2005
Location: ISREAL
Posts: 23
naor52 is an unknown quantity at this point
Question Sensitivity Wheels - help please

hi, 'sup doods?

I have a problem in setting the program code for the wheels.
In my program code I've already set the wheels but there is a problem.
The Joystick is too Sensitive! When I pull it full froward the robot just flies!!!

Can someone please give me the code for Sensitivity?
  #2   Spotlight this post!  
Unread 18-01-2006, 12:13
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Sensitivity Wheels - help please

if you want full forward to go half as fast as it is now, divide the joystick readying by two

since the center (off) reading is 128, you need to add 64 to the result to get off back to 128

joystick := (joystick / 2) + 64

if you want it even slower, divide by 4 and add 96 to get zero back to 128.

Something to consider: if your robot is way too fast with the motors running full speed, you might need to gear down your drivetrain (or use smaller wheels). This will bring down your top end, and give your robot more pushing and climbing power.
  #3   Spotlight this post!  
Unread 18-01-2006, 20:15
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Sensitivity Wheels - help please

You might also find it useful to change the characteristics of the joystick vs. speed curve.

Basically, make it so that if you push the joystick within zero and halfway (for example), it gives you up to 1/2 of your max speed, then from halfway to full forward it gives you the rest.

Example:

Code:
#define SENSITIVITY_TOLERANCE 179 /* play with this value */
#define SENSITIVITY_DIVISOR 2 /* and this one too */
#define SENSITIVITY_EDGE (SENSITIVITY_TOLERANCE-127)/SENSITIVITY_DIVIDER+127

int reverse_p1_y = 0;

if( p1_y < 127 )
{
     p1_y = 254-p1_y;
     reverse_p1_y = 1;
}

if( p1_y < SENSITIVITY_TOLERANCE )
     p1_y = (p1_y - 127 )/SENSITIVITY_DIVISOR + 127;
else
     p1_y = SENSITIVITY_EDGE + (p1_y-SENSITIVITY_TOLERANCE)*(254-SENSITIVITY_EDGE)/(254-SENSITIVITY_TOLERANCE);

if( reverse_p1_y )
     p1_y = 254 - p1_y;
The result is that you can move your robot at max speed, but it is more controllable at lower speeds.
  #4   Spotlight this post!  
Unread 18-01-2006, 22:35
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Sensitivity Wheels - help please

Quote:
Originally Posted by Abwehr
You might also find it useful to change the characteristics of the joystick vs. speed curve.

Basically, make it so that if you push the joystick within zero and halfway (for example), it gives you up to 1/2 of your max speed, then from halfway to full forward it gives you the rest.
I think you meant to say if you push it up to half way it gives you up to 1/4 speed, and above that the outputs increase twice as fast.

the default RC code gives you half speed at half-stick, right?
  #5   Spotlight this post!  
Unread 18-01-2006, 22:42
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Sensitivity Wheels - help please

Quote:
Originally Posted by KenWittlief
I think you meant to say if you push it up to half way it gives you up to 1/4 speed, and above that the outputs increase twice as fast.

the default RC code gives you half speed at half-stick, right?
Yeah, that's what I meant.
  #6   Spotlight this post!  
Unread 18-01-2006, 23:01
TimCraig TimCraig is offline
Registered User
AKA: Tim Craig
no team
 
Join Date: Aug 2004
Rookie Year: 2003
Location: San Jose, CA
Posts: 221
TimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to beholdTimCraig is a splendid one to behold
Re: Sensitivity Wheels - help please

Quote:
Originally Posted by naor52
hi, 'sup doods?

I have a problem in setting the program code for the wheels.
In my program code I've already set the wheels but there is a problem.
The Joystick is too Sensitive! When I pull it full froward the robot just flies!!!
The output from the Victor speed controllers is very nonlinear with respect to the input value. You're at around 90% output at half the input range. What you want to do is insert a transfer function between the joystick input and the PWM setting to the speed controllers. With this you can linearize the response of the motors with respect to the joystick or even tailor it to have "sweet spots" for sensitive control where you want it, usually at the low end.
  #7   Spotlight this post!  
Unread 20-01-2006, 09:13
pclements's Avatar
pclements pclements is offline
Registered User
AKA: Patrick
FRC #1254 (Entropy)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Lawrence
Posts: 18
pclements is an unknown quantity at this point
Send a message via Yahoo to pclements
Re: Sensitivity Wheels - help please

Don't pull the joystick foward all the way, it's like a car.
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
Getting A Bot To Turn Andrew Blair Technical Discussion 20 16-10-2005 23:49
Who Likes Wheels? Rob Technical Discussion 22 06-05-2004 23:49
Four Wheel, all steering, non-omniwheel, ONE power/motor source drive FizMan Technical Discussion 31 27-04-2004 12:12
Lots of Wheels and F = u x N archiver 2001 17 23-06-2002 23:37
"Motors and Drive train edition" of Fresh From the Forum Ken Leung CD Forum Support 6 29-01-2002 12:32


All times are GMT -5. The time now is 01:05.

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