Go to Post We fail to present a coherent picture of what we are if we aren't vigilant about our self-image. - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 09-06-2011, 23:20
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Getting the bot to go straight?

I think you must be mis-remembering. Gearing both sides (left and right) of a differential drive together with a 1:1 ratio IS a surefire way to drive straight*, but good luck turning Otherwise, there is nothing magical about a 1:1 ratio (perhaps in the old days with heavily biased drill motors, using an extra 1:1 ratio would let both motors spin CW/CCW at the same time, but in the CIM era, this is a much more minor issue).

In general, there are a few strategies teams use to drive straighter:

1. Pay close attention to the mechanics. Alignment. Weight distribution. Friction in the drivetrain. Everything on the left should look and feel like everything on the right (always a good idea).

2. Using encoders. When you are driving perfectly straight, the left and right encoders should report the same speed and distance traveled. But when you are veering, one side moves faster than the other. You can write code to automatically boost the power on the slower side or lower the power on the faster side to force the bot to go straight (a good application for a PID controller).

3. Using gyros. Gyros provide you with angular rate information (how fast you are turning). Integrate their output over time (e.g. sum it all up) and you get the heading of the robot. A perfectly straight robot should have 0 angular rate, or in other words, should maintain the same heading. Similar to above, you can write code to tell the bot to adjust motor power to fight any heading changes that you see.

*Assuming everything is aligned, weight is reasonably balanced, etc.
  #2   Spotlight this post!  
Unread 09-06-2011, 23:57
Hawiian Cadder's Avatar
Hawiian Cadder Hawiian Cadder is offline
Registered User
AKA: Isaak
FRC #0159 (Alpine Robotics)
Team Role: CAD
 
Join Date: Feb 2010
Rookie Year: 2003
Location: Fort Colins Colorado
Posts: 573
Hawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to allHawiian Cadder is a name known to all
Re: Getting the bot to go straight?

with the drill motors that was an issue. cims gain bias the older and/or more used they are, so i would recommend against using cims from prior robots, or more than 2-3 years old. (replace the motor, keep the gearbox, if you are worried about costs.)

our team used to always use drive straight code. this year, for the first time since i joined the team, the robot drives perfectly straight, without any code.
  #3   Spotlight this post!  
Unread 10-06-2011, 00:28
Thermal's Avatar
Thermal Thermal is offline
Drive Team Coach
AKA: Ryan Brown
FRC #1293 (D5 Robotics)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2007
Location: Columbia, SC
Posts: 153
Thermal is a splendid one to beholdThermal is a splendid one to beholdThermal is a splendid one to beholdThermal is a splendid one to beholdThermal is a splendid one to beholdThermal is a splendid one to beholdThermal is a splendid one to beholdThermal is a splendid one to behold
Re: Getting the bot to go straight?

A longer wheel base will also improve your bots ability to drive in a straight line. (Notice: This also makes turning your robot much more difficult. Which.. well... is why your bot will drive straighter....)
__________________
D5 Robotics: Member since 2007
Drive Team Coach, Design Mentor
Palmetto Regional attendee 2007-2011
2009 QF, 2010 SF, 2011 SF
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


All times are GMT -5. The time now is 05: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