View Single Post
  #21   Spotlight this post!  
Unread 31-03-2012, 20:37
dcherba dcherba is offline
Registered User
FRC #3234 (Red Arrow Robotics)
Team Role: Programmer
 
Join Date: Dec 2009
Rookie Year: 2000
Location: ada, mi
Posts: 32
dcherba has a spectacular aura aboutdcherba has a spectacular aura aboutdcherba has a spectacular aura about
Re: Curve Driving Generator

The real problem you have is one of reference frame. The curve it self is not important as it represents some path on the playing field frame of reference. The incremental control of the robot is based on its frame of reference to the center of the robot for example.
This is a common problem for aircraft, satellites and just about any navigation problem.
The solution is to use a series of translations and rotations. The best way to do that is with quaternions as they do the rotation without ambiquity.

http://en.wikipedia.org/wiki/Quatern...atial_rotation
has a good primer on the subject. This is commonly used for computer graphics and simulations.

Have fun
__________________
Dave Cherba
Mentor Team 3234
WZ8T