Go to Post Brandon, can you make some sort of mind-reading device that i can just think "portal" and i'll go back? - Tom Schindler [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 23-02-2013, 00:02
grosh grosh is offline
Registered User
FRC #2147
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 100
grosh is an unknown quantity at this point
Drive motor spinning out...need slower response

We geared our robot for speed...maybe to much. We need to slow the response of our joysticks to the drive motors to keep us from spinning out. We are using talons and labview. Any help?
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2013, 09:01
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Drive motor spinning out...need slower response

Here's a simple option that might work well for you: in the wire between the joystick axis and the Robot Drive function, insert a cube function.

Right-click the wire. From the popup menu, choose Insert -> Numeric Palette -> Expression Node (it's a rectangle saying EXPR). You'll get a small orange box with right-pointing arrows on either end. Click the blank space between the arrows and type x*x*x.

Now, small motions of the joystick will give you very small changes in the motor control value. Medium motions of the joystick will give you smallish changes in the motor value. But full travel of the joystick will still give you full power.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-02-2013, 09:05
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Drive motor spinning out...need slower response

You could modify the response curve of your joystick to emphasize the low end more
Like this:


Or your could cut the top speed by multiplying the joystick axis by a percentage, like .75, before feeding it to the Motor Output.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 23-02-2013, 10:04
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: Drive motor spinning out...need slower response

Quote:
Originally Posted by grosh View Post
We geared our robot for speed...maybe to much. We need to slow the response of our joysticks to the drive motors to keep us from spinning out.
"Spinning out" and "need to slow the response" sounds like you geared your drivetrain for too much acceleration.

If that's the case, take a look at the "slew rate limiting" in Eric VanWyk's article here: http://thinktank.wpi.edu/article/140


Attached Thumbnails
Click image for larger version

Name:	Slew Rate Limiting.png
Views:	18
Size:	44.1 KB
ID:	14149  
Reply With Quote
  #5   Spotlight this post!  
Unread 23-02-2013, 12:39
grosh grosh is offline
Registered User
FRC #2147
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 100
grosh is an unknown quantity at this point
Re: Drive motor spinning out...need slower response

[quote=Ether;1239130]"Spinning out" and "need to slow the response" sounds like you geared your drivetrain for too much acceleration.

QUOTE]

Ether you're right. We have an acceleration issue. If the driver is careful with the sticks, doesn't apply to much throttle to soon, she can avoid spinning out. With practice she could probably get used to it but I was hoping for a pragramming fix to help her.

We will try these suggestions out today. I'll let you know how it works. Thanks!
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 22:51.

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