Go to Post This is an open forum and it is a privilege to post here, if you don't agree with the rules then just don't post here. - dez250 [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 07-02-2008, 22:40
A.Tup's Avatar
A.Tup A.Tup is offline
Registered User
AKA: Adam
FRC #2620 (Village Idiots)
Team Role: Driver
 
Join Date: Feb 2008
Rookie Year: 2007
Location: So-Mich (734)
Posts: 9
A.Tup is an unknown quantity at this point
Send a message via AIM to A.Tup
Joystick help (Rookie)

Hello everyone I was wondering if there is a way to change the sensitivity of the joysticks right now we barely touch them and the wheels go we would like a little less sensitivity help greatly appreciated

A.Tup
2620
  #2   Spotlight this post!  
Unread 08-02-2008, 00:52
PrincessJae's Avatar
PrincessJae PrincessJae is offline
Registered User
FRC #2543 (Titan-Bot)
Team Role: Electrical
 
Join Date: Jan 2008
Rookie Year: 2008
Location: San Diego
Posts: 53
PrincessJae is infamous around these partsPrincessJae is infamous around these partsPrincessJae is infamous around these partsPrincessJae is infamous around these parts
Send a message via AIM to PrincessJae
Re: Joystick help (Rookie)

its in the programming code, i dont remember exactly because im not at school but i can probably help you tomorrow. What our team did was make three different "gears" you could call them for reverse, and 5 for forward, so that you gradually get faster.
  #3   Spotlight this post!  
Unread 08-02-2008, 04:59
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: Joystick help (Rookie)

The following code will scale down your joystick sensitivity:

if your original code was

Code:
pwm01 = p1_y;
change it to:

Code:
pwm01 = ( ((signed int)p1_y) - 127 ) / 2 + 127;
Change pwm01 and/or p1_y according to which PWM output and joystick you are using. You can change the scaling factor by changing the 2 (right now it's set to 1/2). For example, to set it at 1/3 power, change the 2 to a three. If you want to use a fraction like 2/3, change / 2 to * 2 / 3. Note: use fractions this way and not decimals, as it will make your code run faster because it only does integer math.

Hope that wasn't too confusing,
--Ryan

Edit: That's for MPLAB. If you're using EasyC, I'm not sure if I can help as much.

Last edited by RyanCahoon : 08-02-2008 at 05:05. Reason: Sudden realization
  #4   Spotlight this post!  
Unread 08-02-2008, 08:26
kylelanman's Avatar
kylelanman kylelanman is online now
Programming Mentor
AKA: Kyle
FRC #2481 (Roboteers)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Tremont Il
Posts: 189
kylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to allkylelanman is a name known to all
Re: Joystick help (Rookie)

This thread has great solution that uses a cubic function.
http://www.chiefdelphi.com/forums/sh...ad.php?t=63069
  #5   Spotlight this post!  
Unread 08-02-2008, 10:09
A.Tup's Avatar
A.Tup A.Tup is offline
Registered User
AKA: Adam
FRC #2620 (Village Idiots)
Team Role: Driver
 
Join Date: Feb 2008
Rookie Year: 2007
Location: So-Mich (734)
Posts: 9
A.Tup is an unknown quantity at this point
Send a message via AIM to A.Tup
Re: Joystick help (Rookie)

ok thank you all for all the help
  #6   Spotlight this post!  
Unread 08-02-2008, 10:33
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Joystick help (Rookie)

Adam,
Something no one mentioned is to ask the question "Are your speed controllers calibrated?" Quite often, the Victors do not match the charachteristics of your joysticks. Move your joysticks forward and reverse and see at which point the Victor LED is fully red and fully green. If this occurs at less than full travel on the joystick, you need to calibrate the Victor. For teams who do not perform this calibration in the software, the only way to calibrate is following the method in the 884 users manual found on the IFI website. This procedure matches the full travel of your joystick to the full output of the Victor. The joysticks and the Victors are not matched before they are put in the KOP.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #7   Spotlight this post!  
Unread 08-02-2008, 11:51
A.Tup's Avatar
A.Tup A.Tup is offline
Registered User
AKA: Adam
FRC #2620 (Village Idiots)
Team Role: Driver
 
Join Date: Feb 2008
Rookie Year: 2007
Location: So-Mich (734)
Posts: 9
A.Tup is an unknown quantity at this point
Send a message via AIM to A.Tup
Re: Joystick help (Rookie)

ok thank you i will check that next time in with the robot thanks again
  #8   Spotlight this post!  
Unread 10-02-2008, 13:32
corcarter's Avatar
corcarter corcarter is offline
Registered User
AKA: Corey
FRC #2620 (TBA)
Team Role: Electrical
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Southgate MI
Posts: 20
corcarter will become famous soon enough
Send a message via AIM to corcarter
Re: Joystick help (Rookie)

i think our driver just needs to learn how to drive!!!!!
__________________
good year fellas and ladies, good year
  #9   Spotlight this post!  
Unread 08-02-2008, 10:32
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Joystick help (Rookie)

Quote:
Originally Posted by A.Tup View Post
Hello everyone I was wondering if there is a way to change the sensitivity of the joysticks right now we barely touch them and the wheels go we would like a little less sensitivity help greatly appreciated

A.Tup
2620
This thread is from 2004. It's a cubic transfer function like above.

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

Good luck!
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
Help with joystick lightning_blast Programming 2 12-02-2006 22:25
Rookie help doyler Technical Discussion 55 11-01-2005 08:59
VB6: Joystick help! Astronouth7303 Programming 0 15-06-2004 17:05
Changing 1 joystick code to 2 (rookie team) Brawler006 Programming 5 20-02-2004 17:00
Joystick Help archiver 2001 0 24-06-2002 01:02


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

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