Go to Post Gracious professionalism is a two-way street. - Bharat Nain [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 02-12-2013, 09:40 PM
flameout flameout is offline
AKA Ryan Van Why
FRC #0957 (SWARM)
Team Role: Alumni
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Oregon
Posts: 168
flameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to all
Re: Getting final vector from left & right drive encoders

It will be very difficult to make this accurate. First, let me point out that wheel slip can and does occur (to limit this, you'll pretty much need to limit your acceleration severely). In particular, this will make heading measurement difficult.

As a result, I'd recommend adding a heading gyro as well, and use that for your heading reference.

Then, each cycle, average the distances from the left and right encoders, and use that as the magnitude for the delta position vector. Use the gyro to obtain the heading for this vector. Then add this delta position vector to the current position each time. You will still get errors if wheel slip occurs -- this is why I suggested limiting acceleration (perhaps Jaguars in current control mode, or pseudo-current-control through velocity feedback?)

I'd explain the math and wheel slip-related caveats to this in more depth, but I simply do not have the time to do so right now. I wish you success (please let us know if you succeed!)
 


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:49 AM.

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