Go to Post Being rude is easy. Being a compassionate human being takes work. - Joe Johnson [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 24-02-2012, 20:11
Team 1824's Avatar
Team 1824 Team 1824 is offline
Registered User
FRC #1824
 
Join Date: Jan 2012
Location: Peterborough
Posts: 17
Team 1824 is an unknown quantity at this point
Programming help

Is it possible to make the joystick less sensitive? I want to make it so that when you push the joystick all the way forward the motor goes at half speed or even quarter speed.

If anyone can help that would be great.

Thanks,
Team 1824
Reply With Quote
  #2   Spotlight this post!  
Unread 24-02-2012, 20:23
da johnny boy da johnny boy is offline
Registered User
FRC #4142 (Shorebots)
Team Role: Leadership
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Ohio
Posts: 11
da johnny boy is an unknown quantity at this point
Re: Programming help

This is fairly easy. If you want to slow down the motor speed, just divide the joystick output by how ever much you want to slow down the motor, and feed that value to motor output.
Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	37
Size:	15.1 KB
ID:	12092  
Reply With Quote
  #3   Spotlight this post!  
Unread 24-02-2012, 20:43
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,995
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Programming help

I'm not a programmer, but you might want to consider doing that, but making it controllable from a joystick button - press the button once to get "low power", press it again to get "high(er) power". Particularly if we're discussing drivetrain motors - you never know when you might want (or need) more power, and giving your drivers the flexibility to get it is not such a bad idea. (Well, OK, I don't know your drivers. Maybe it IS a bad idea... )
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #4   Spotlight this post!  
Unread 24-02-2012, 20:54
da johnny boy da johnny boy is offline
Registered User
FRC #4142 (Shorebots)
Team Role: Leadership
 
Join Date: Dec 2011
Rookie Year: 2011
Location: Ohio
Posts: 11
da johnny boy is an unknown quantity at this point
Re: Programming help

Here is another program that reduces the output of the joystick whenever the 2 button on the joystick is pressed. You could also program the button to toggle the motor speed instead of having to hold the button.
Attached Thumbnails
Click image for larger version

Name:	Untitled.png
Views:	34
Size:	7.0 KB
ID:	12093  
Reply With Quote
  #5   Spotlight this post!  
Unread 24-02-2012, 22:18
Brandon_L Brandon_L is offline
Someone told me there was food here
AKA: Brandon Liatys
FRC #2180 (Zero Gravity)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Newark, NJ
Posts: 1,200
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Re: Programming help

There is a difference between a less sensitive joystick and supplying less power to the motors. To make it less sensitive (I'm guessing maybe the problem could be its sending values to the motors when your not touching it or something) you could try something like this:



EDIT: Wow, I didn't read the first post full through. Oops. Well, now you know how to add a deadzone xD
__________________
FRC 2495 - Hamilton West Robotics [2007-2014] - whats a..."hive mind"?
FRC 3929 - Atomic Dragons [2012-2013]
FRC 2180 - Zero Gravity [2017-]

Just trying to collect all the possible team colors

Last edited by Brandon_L : 24-02-2012 at 22:53.
Reply With Quote
  #6   Spotlight this post!  
Unread 25-02-2012, 09:41
Team 1824's Avatar
Team 1824 Team 1824 is offline
Registered User
FRC #1824
 
Join Date: Jan 2012
Location: Peterborough
Posts: 17
Team 1824 is an unknown quantity at this point
Re: Programming help

Thank you for all of the replies. I understand how to do it now.

Team 1824
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 11:17.

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