Go to Post People do amazing things for stuff the have a passion for. - Foster [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2017, 12:25
ethan271's Avatar
ethan271 ethan271 is offline
Registered User
FRC #0935 (Railerobotics)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Newton, KS
Posts: 9
ethan271 is an unknown quantity at this point
Limit full power on victor sp

So we saw with a test robot that our drive is too fast, is there a way that we could limit the victor to were if we were full on the joystick that it would max out power to 75%? We are using labview for programming.
__________________
01010111011010010111001101101000001000000111010101 11001100100000011011000111010101100011011010110010 0001
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2017, 12:28
Oblarg Oblarg is online now
Registered User
AKA: Eli Barnett
FRC #0449 (The Blair Robot Project)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Philadelphia, PA
Posts: 1,113
Oblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond repute
Re: Limit full power on victor sp

Quote:
Originally Posted by ethan271 View Post
So we saw with a test robot that our drive is too fast, is there a way that we could limit the victor to were if we were full on the joystick that it would max out power to 75%? We are using labview for programming.
I don't know labview, but you should be able to just multiply the joystick input by some constant less than 1.
__________________
"Mmmmm, chain grease and aluminum shavings..."
"The breakfast of champions!"

Member, FRC Team 449: 2007-2010
Drive Mechanics Lead, FRC Team 449: 2009-2010
Alumnus/Technical Mentor, FRC Team 449: 2010-Present
Lead Technical Mentor, FRC Team 4464: 2012-2015
Technical Mentor, FRC Team 5830: 2015-2016
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2017, 12:35
arichman1257's Avatar
arichman1257 arichman1257 is offline
VP, Control Systems Captain, Coach
AKA: Alan Richman
FRC #1257 (Parallel Universe)
Team Role: Electrical
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Fanwood, New Jersey, USA, Earth...
Posts: 74
arichman1257 will become famous soon enougharichman1257 will become famous soon enough
Re: Limit full power on victor sp

Quote:
Originally Posted by Oblarg View Post
I don't know labview, but you should be able to just multiply the joystick input by some constant less than 1.
Do this ^^. I do not know how to do it in LabView but it should be a similar method to any other language.
For example, for 75% multiply the value (between -1 and 1) from the stick by 0.75 (called a scale factor). And you will want to do that in whatever function/method you are using to send signals to the motor controller. In C++ (and Java, I think) you would do
Code:
Motor_Controller_Name.Set(Joystick_Input * Scale_Factor)
__________________
1257 Parallel Universe: 2014 - 2017 Seasons
2017: Vice President, Control Systems Captain, Drive Coach
2016: Control Systems Captain, Operator. MAR District Championship Winner, MAR Mt. Olive Event Winner, MAR Bridgewater-Raritan Event Finalist
2015: Control Systems, Operator. MAR North Brunswick Event Finalist
2014: Programming/Electronics Apprentice. MAR Clifton Event Winner
Reply With Quote
  #4   Spotlight this post!  
Unread 20-01-2017, 12:46
Andy Brockway Andy Brockway is offline
Engineer
FRC #0716 (Who'sCTEKS)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Falls Village, CT
Posts: 459
Andy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond repute
Re: Limit full power on victor sp

You can never have a robot that is too fast!

We usually use one of the joystick triggers to reduce the max speed by a software scale factor applied to the y-axis when we want finer control of the throttle.

If you want a permanent reduction it could be done mechanically with gears. sprockets or smaller wheel. This will let you use the full power of the motors.
__________________
Andy Brockway
Team 716, The Who'sCTEKS
Reply With Quote
  #5   Spotlight this post!  
Unread 20-01-2017, 13:00
cbale2000's Avatar
cbale2000 cbale2000 is offline
Registered User
AKA: Chris Bale
FRC #5712 (Gray Matter)
Team Role: Mentor
 
Join Date: Apr 2006
Rookie Year: 2004
Location: Saginaw, MI
Posts: 951
cbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond repute
Re: Limit full power on victor sp

Quote:
Originally Posted by Andy Brockway View Post
If you want a permanent reduction it could be done mechanically with gears. sprockets or smaller wheel. This will let you use the full power of the motors.
This. If your drive system is faster than you ever intend to use, get a lower gear ratio. Otherwise you're wasting power and efficiency in your drive.
__________________
2005-2008: FRC 703 Phoenix - Driver
2009-2016: FRC 703 Phoenix - Mentor
2017-????: FRC 5712 Gray Matter - Mentor
Reply With Quote
  #6   Spotlight this post!  
Unread 20-01-2017, 13:03
arichman1257's Avatar
arichman1257 arichman1257 is offline
VP, Control Systems Captain, Coach
AKA: Alan Richman
FRC #1257 (Parallel Universe)
Team Role: Electrical
 
Join Date: Dec 2014
Rookie Year: 2014
Location: Fanwood, New Jersey, USA, Earth...
Posts: 74
arichman1257 will become famous soon enougharichman1257 will become famous soon enough
Re: Limit full power on victor sp

Quote:
Originally Posted by Andy Brockway View Post
You can never have a robot that is too fast!

We usually use one of the joystick triggers to reduce the max speed by a software scale factor applied to the y-axis when we want finer control of the throttle.

If you want a permanent reduction it could be done mechanically with gears. sprockets or smaller wheel. This will let you use the full power of the motors.
Even though this is harder than the code thing, this is a better solution.
__________________
1257 Parallel Universe: 2014 - 2017 Seasons
2017: Vice President, Control Systems Captain, Drive Coach
2016: Control Systems Captain, Operator. MAR District Championship Winner, MAR Mt. Olive Event Winner, MAR Bridgewater-Raritan Event Finalist
2015: Control Systems, Operator. MAR North Brunswick Event Finalist
2014: Programming/Electronics Apprentice. MAR Clifton Event Winner
Reply With Quote
  #7   Spotlight this post!  
Unread 20-01-2017, 13:09
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,685
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Limit full power on victor sp

The question is, in what way is your drivetrain "too fast"?

Is the top speed more than your driver can handle/control? If so, either more drive practice, or gear lower as suggested above so that you will use less current accelerating and/or accelerate to top speed faster.

Is the acceleration (particularly at low speed) too great, causing you to fall over backward? If so, less grippy wheels or voltage ramping (programming so that you are only increasing the voltage at a maximum rate, e.g. 20% throttle per 100ms) may be the answer.

If the joystick is too sensitive in "parking" maneuvers (e.g. lining up to get or score game pieces), you could have a switch to go between two throttle modes, or program a nonlinear response to the joysticks. Ether's paper on joystick sensitivity is a great resource for the last.

Edit: I've never written any LabView, so forgive me if my terms are way out of whack, but if you really still want to do what you asked at the beginning, you would add two "multiply" operators. Break the wire connecting your joysticks (or arcade operator) to your motor controllers. Feed the joystick output to one input, 0.75 to the other, and the output goes to the motor controller input.

That throttle switch idea would give 1.0 at one throttle setting and (for example) 0.5 at the other where I had 0.75 above.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.

Last edited by GeeTwo : 20-01-2017 at 13:16.
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 23:54.

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