Go to Post This web site is a service by our team to the FIRST Community to foster interest and growth in Engineering, the FIRST Competition and Education of youth for the careers of tomorrow. - Mike Martus [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 25-01-2013, 20:54
nickhilgupta's Avatar
nickhilgupta nickhilgupta is offline
Registered User
FRC #4674
 
Join Date: Jan 2013
Location: Bemidji Mn
Posts: 13
nickhilgupta is an unknown quantity at this point
Is there a way to use LabVIEW to slow down the robot speed?

We have to reduce the speed because it is way to fast. So is there a way to slow it down using labview? I tried to multiply the joystick input by .5 but cant try it because we are missing a wire and wont get it for a few days. so can someone tell me if what i did in the picture (we have tank drive) with teleop.vi will work.
http://postimage.org/image/4lghy7lth/
and if it does not work, then can someone tell me what to do to slow it down?
thanks in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2013, 21:01
tcjinaz tcjinaz is offline
Tim
FRC #3853
Team Role: Mentor
 
Join Date: May 2011
Rookie Year: 2011
Location: Arizona
Posts: 206
tcjinaz has a spectacular aura abouttcjinaz has a spectacular aura about
Re: Is there a way to use LabVIEW to slow down the robot speed?

We just discovered SquaredInputs on the motor control VI. Interesting results.
Try it.
__________________
Software Mentor
3853 Pridetronics[

Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2013, 21:14
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: Is there a way to use LabVIEW to slow down the robot speed?

Quote:
Originally Posted by nickhilgupta View Post
We have to reduce the speed because it is way to fast.
If your robot drivetrain is geared so fast that your drivers cannot control full throttle, then you should seriously consider changing the gear ratio of the drivetrain.


Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2013, 18:04
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: 7,011
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: Is there a way to use LabVIEW to slow down the robot speed?

I agree with ether. The reason he is saying that is because slowing your speed down 50% using software means that your motors are only spinning at half their normal speed, which implies a lot less power than you could be getting. Low power is not really what you're looking for an drivetrain.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2013, 18:36
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Is there a way to use LabVIEW to slow down the robot speed?

I agree with all the above posts...but that said, all you would have to do is multiply whatever values you're sending to the motor by 0.5 in order to limit your maximum speed from the code.
Reply With Quote
  #6   Spotlight this post!  
Unread 26-01-2013, 18:43
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Is there a way to use LabVIEW to slow down the robot speed?

To delve a little deeper. If too fast means it accelerates too fast but isn't too fast when the joystick is pegged, then the squared inputs is a good suggestion. If too fast means that the robot's velocity is to large and the robot is uncontrollable, then you really should look at the gearing and the wheel size rather than trying to work around it in SW.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2013, 05:52
sasha831 sasha831 is offline
Sasha
FRC #4529 (AI Robotics)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Australia
Posts: 35
sasha831 is an unknown quantity at this point
Re: Is there a way to use LabVIEW to slow down the robot speed?

What you are doing will work. We have a setup where we map the throttle (axis 3) to a value between 0 and 1, and then we multiply the joystick output by that value. This way, we can set the maximum speed mid game, and adjust it lower for more control, or higher if we need to push a robot out of our way
__________________
Theory is when you know everything but nothing works. Practice is everything works but no one knows why. On our Team, theory and practice are combined: nothing works and no one knows why!
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 21:53.

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