Go to Post Messy wires are a pain in the chassis - [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-06-2010, 15:04
Straberrie's Avatar
Straberrie Straberrie is offline
The Plague
AKA: Rebecca
FRC #0375 (Robotic Plague)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: New York
Posts: 59
Straberrie will become famous soon enough
Setting Max Speed?

Hey!

My team is using a four-wheeled holonomic drive. We are using four Victors.

Quote:

RobotDrive myRobot;
Victor VictorFrontLeft;
Victor Victor RearLeft;
Victor VictorFrontRight;
Victor VictorRearRight;
Joystick Joystick;

.....
......

myRobot(4,1,3,2);
Joystick(3);
VictorFrontLeft (4),
VictorRearLeft (1),
VictorFrontRight(3),
VictorRearRIght (2)
......

......

In Operated Control:

myRobot.HolonomicDrive( Joystick.GetMagnitude (), JoyStick.GetDirectionDegrees (), JoyStick.GetTwist());

.....
The drive itself works. I attempted using:

Quote:
myRobot.SetLeftRightMotorSpeeds (0.1, 0.1);
to set max speed that Victors can operate the motors at so that the drive would be more controllable, but it didn't work.

How would I set max speed of a Victor?

Thank you very much!
__________________
Team 375: The Robotic Plague
Current Robot: I-Chihuahua
Last Event: Big Apple Breakaway
  #2   Spotlight this post!  
Unread 11-06-2010, 15:38
JamesCH95's Avatar
JamesCH95 JamesCH95 is online now
Hardcore Dork
AKA: JCH
FRC #0095 (The Grasshoppers)
Team Role: Engineer
 
Join Date: Dec 2004
Rookie Year: 2001
Location: Enfield, NH
Posts: 1,810
JamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond repute
Re: Setting Max Speed?

Gear down your motors more, clearly this is a mechanical problem from a competition standpoint it would be better to utilize the higher pushing force and acceleration that are gained by gearing the motors to a higher reduction.

Alternatively you could try scaling the output to each victor by a constant, like 0.8, and/or add an if statement that caps the maximum speed sent to each victor.
__________________
Theory is a nice place, I'd like to go there one day, I hear everything works there.

Maturity is knowing you were an idiot, common sense is trying to not be an idiot, wisdom is knowing that you will still be an idiot.
  #3   Spotlight this post!  
Unread 11-06-2010, 15:51
Dkt01's Avatar
Dkt01 Dkt01 is offline
Programming Mentor
AKA: David
FRC #1756 (Argos)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Peoria, Il
Posts: 145
Dkt01 will become famous soon enough
Re: Setting Max Speed?

Your code may be working fine. I know that we tried something similar in LabVIEW with Jaguars. Our only problem was that the wheels (attached to CIMs) wouldn't turn at any noticeable speed until we set the speed to at least .2. Try increasing your maximum speed by increments of .05, it worked for us.
  #4   Spotlight this post!  
Unread 11-06-2010, 16:00
Straberrie's Avatar
Straberrie Straberrie is offline
The Plague
AKA: Rebecca
FRC #0375 (Robotic Plague)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: New York
Posts: 59
Straberrie will become famous soon enough
Re: Setting Max Speed?

Quote:
Originally Posted by JamesCH95 View Post
Gear down your motors more, clearly this is a mechanical problem from a competition standpoint it would be better to utilize the higher pushing force and acceleration that are gained by gearing the motors to a higher reduction.

Alternatively you could try scaling the output to each victor by a constant, like 0.8, and/or add an if statement that caps the maximum speed sent to each victor.
Thank you! lol I cant believe it was this simple >< I feel a lil stupid lol
We just did it and it workedddd! Thanks againn
__________________
Team 375: The Robotic Plague
Current Robot: I-Chihuahua
Last Event: Big Apple Breakaway
  #5   Spotlight this post!  
Unread 11-06-2010, 16:27
JamesCH95's Avatar
JamesCH95 JamesCH95 is online now
Hardcore Dork
AKA: JCH
FRC #0095 (The Grasshoppers)
Team Role: Engineer
 
Join Date: Dec 2004
Rookie Year: 2001
Location: Enfield, NH
Posts: 1,810
JamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond repute
Re: Setting Max Speed?

Good deal

Don't worry, my team's programmers get lost on the simple things too
__________________
Theory is a nice place, I'd like to go there one day, I hear everything works there.

Maturity is knowing you were an idiot, common sense is trying to not be an idiot, wisdom is knowing that you will still be an idiot.
  #6   Spotlight this post!  
Unread 11-06-2010, 17:48
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: Setting Max Speed?

Not to point out the obvious, but if you actually tried setting the max victor speed to .1, this would be 10%. This is wayyyyyyy too little power to do anything. .5-.6 would be a far more reasonable limit to start with, especially for a holonomic drive with potentially quite a bit of resistance.
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
Setting the speed on a jaguar in C++ DillonMartine Programming 3 01-02-2009 11:26
Brake/Coast setting for speed controller cabbagekid2 Control System 0 16-02-2005 16:54
Brake/Coast setting for speed controller cabbagekid2 Electrical 0 16-02-2005 16:54
speed controller max speed Team 668 Programming 15 13-02-2005 14:05
Speed Controller brake/coast setting steven114 Electrical 21 03-03-2004 13:05


All times are GMT -5. The time now is 10:39.

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