View Single Post
  #3   Spotlight this post!  
Unread 26-08-2010, 00:32
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Auto trimming using the gyro

Quote:
Originally Posted by baronep View Post
Does anyone have any ideas as to how to do this?
The basic idea is pretty simple. Use the yaw rate sensor to derive a "current heading" measurement value; the gyro support in the library does that for you. Maintain a "desired heading" control value, using joystick input to change the desired value. Tie the two of them together as the feedback and control parameters of a PID system, using the output of the PID as the "rotation" input of the mecanum drive.

I hope enough of that makes sense to give you a place to start.
Reply With Quote