Go to Post I firmly believe that - those [GDC] committee members I have met, even briefly, certainly have a passion for what they are doing and want to give teams and students the best possible experiences. - GaryVoshol [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 05-02-2008, 23:07
Nuggets08 Nuggets08 is offline
Registered User
FRC #1737 (Project X Robotics)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Excelsior Springs, MO
Posts: 11
Nuggets08 is on a distinguished road
Problems with our driving

Alright, so basically our robot has 6 wheels, the four corner wheels are omni wheels, and the middle wheels are traction wheels that are connected to motors. In the programming I have it set up to use 2 joysticks on a tank-drive. Now that is all good and well, I like tank drive, but you barely move the joystick and the robot increases speed alot, but from there on the joystick, there is little more acceleration out of the robot. This creates a problem in turning, once it starts turning it doesn't stop. I am also the driver and this touchiness of the robot is annoying me.
The way I came up with to fix it is to find the function relating the joystick movement to the robot's speed, and then modify it in the code so that there is a direct correlation of joystick movement to speed. I figured out that:
Robot Movement = 42(Joystick Movement)^(1/5), this is only approximate though. I'm not sure what to do from there though. If anyone can help me out with this, or give me a better way to do it, please help!
Thank you! =)
__________________
-Nuggets
Project X Robotics
Team 1737
Excelsior Springs, MO
Attending: KC-Metro Regional
Project Manager, Lead Programmer
  #2   Spotlight this post!  
Unread 05-02-2008, 23:12
thefro526's Avatar
thefro526 thefro526 is offline
Mentor for Hire.
AKA: Dustin Benedict
no team (EWCP, MAR, FRC 708)
Team Role: Mentor
 
Join Date: Aug 2006
Rookie Year: 2005
Location: New Jersey
Posts: 2,599
thefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond repute
Send a message via AIM to thefro526 Send a message via MSN to thefro526
Re: Problems with our driving

Maybe you may want switch out one of your sets of omni-wheels for another set of traction wheels. That may make your turning more predictable.
__________________
-Dustin Benedict
2005-2012 - Student & Mentor FRC 816
2012-2014 - Technical Mentor, 2014 Drive Coach FRC 341
Current - Mentor FRC 2729, FRC 708
  #3   Spotlight this post!  
Unread 05-02-2008, 23:25
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,785
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Problems with our driving

One thing our team is doing that seems to help a ton is using a cubic function: motor = (input - 127)^3/127^2 + 127

The real nice thing about this method is that when the joystick is at either extrema (0 or 255), your motor is at the extrema too... But moving the joystick a little moves the motors even less near the center. For example, plugging in 157 (only 30 'ticks' forward of the center of the joystick) gives you a motor output of something like 130. Basically, you make the robot less responsive to the joystick near the center, but gradually "ramp up" the responsiveness as you move the joystick out.
  #4   Spotlight this post!  
Unread 05-02-2008, 23:34
Nuggets08 Nuggets08 is offline
Registered User
FRC #1737 (Project X Robotics)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Excelsior Springs, MO
Posts: 11
Nuggets08 is on a distinguished road
Re: Problems with our driving

Mmmm, that's something like what I'm looking for, the graph of that looks nice. I will have to test that tomorrow, assuming we have school... big snowstorm. Also, I will mention it to my mentor to change two to traction wheels, which two though? Front or back?
__________________
-Nuggets
Project X Robotics
Team 1737
Excelsior Springs, MO
Attending: KC-Metro Regional
Project Manager, Lead Programmer
  #5   Spotlight this post!  
Unread 06-02-2008, 09:37
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,785
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Problems with our driving

One more thing to add... if you're using the cubic function, make sure all your variable types are longs - 127^3 will overflow an int.

As for which wheels to look into changing, you'll want that to be the ones that hold the most weight. Also, do you have your wheels offset so the traction wheels in the middle are slightly lower than the ones on either end? You need to do that (and introduce a slight rocking in your robot) to ensure your traction wheels are always on the ground.

Finally, no one's asked yet if you're test driving on carpet or not... We use the same wheel setup as you, and it does slide a bit on hard flooring, but on carpet it works just fine!
  #6   Spotlight this post!  
Unread 07-02-2008, 14:14
Nuggets08 Nuggets08 is offline
Registered User
FRC #1737 (Project X Robotics)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Excelsior Springs, MO
Posts: 11
Nuggets08 is on a distinguished road
Re: Problems with our driving

We have the traction wheels in the middle lowered slightly, and have been testing on carpet. I'll go back in the code and change things to long, I completely overlooked that fact ;-) thanks!
__________________
-Nuggets
Project X Robotics
Team 1737
Excelsior Springs, MO
Attending: KC-Metro Regional
Project Manager, Lead Programmer
  #7   Spotlight this post!  
Unread 07-02-2008, 14:17
BHOP BHOP is offline
Registered User
FRC #0399 (Eagle Robotics)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2003
Location: CA
Posts: 62
BHOP has much to be proud ofBHOP has much to be proud ofBHOP has much to be proud ofBHOP has much to be proud ofBHOP has much to be proud ofBHOP has much to be proud ofBHOP has much to be proud ofBHOP has much to be proud of
Re: Problems with our driving

are your motors in coast? because that could be a problem for not stopping after turning
__________________
BHOP

ME CoE University of Michigan
503 Frog Force 830 Rat Pack
399 Eagle Robotics
  #8   Spotlight this post!  
Unread 07-02-2008, 14:57
Kims Robot's Avatar Unsung FIRST Hero
Kims Robot Kims Robot is offline
Onto a New Chapter...
AKA: Kim O'Toole Eckhardt
no team
 
Join Date: Aug 2004
Rookie Year: 1996
Location: Framingham, MA
Posts: 1,467
Kims Robot has a reputation beyond reputeKims Robot has a reputation beyond reputeKims Robot has a reputation beyond reputeKims Robot has a reputation beyond reputeKims Robot has a reputation beyond reputeKims Robot has a reputation beyond reputeKims Robot has a reputation beyond reputeKims Robot has a reputation beyond reputeKims Robot has a reputation beyond reputeKims Robot has a reputation beyond reputeKims Robot has a reputation beyond repute
Send a message via AIM to Kims Robot
Re: Problems with our driving

Somewhat similar to what was mentioned above but here is what we do...

We have the exact same setup you do (4 omni, two traction), and what we do is have a "deadzone" around the base of the joysticks, and I believe we also do some acceleration in our code (so that when you push the joystick out of the centered 128 position it doesnt start until something like 150, and then actually outputs a slower ramp 150 on the joystick outputs 129 for the motors, 152 might output 130, etc...). If you want to implement this in your code, email me and I can have our programmers send you some code. Im not exactly certain what formulas they use, but thats the basic concept.

This provides for a much smoother drive system, but allows you to take advantage of the power and manueverability of the drivetrain design you have.
__________________
~kim~
Kimberly O'Toole Eckhardt <3
Principal Systems Engineer & Program Manager
History - Team 176, Team 229, Team 1511, FIRST Volunteer!!
My new FIRST Photography Hobby & Angry Eric's Fan Page
Excellence - is the result of caring more than others think is wise, risking more than others think is safe, dreaming more than others think is practical, and expecting more than others think is possible.
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
Problems with our OI/RC robobrain0101 Programming 3 09-02-2007 14:48
autotracking and driving with Easy C??? team877 Programming 4 19-01-2007 12:36
Basics for autotracking and driving with it team877 Programming 1 17-01-2007 20:27
Problems with our school Team1726Nerds Chit-Chat 6 13-01-2006 23:55
problems with our programmer AlphaOmega870 Programming 12 31-01-2003 08:23


All times are GMT -5. The time now is 13:16.

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