View Single Post
  #1   Spotlight this post!  
Unread 30-01-2008, 22:51
sparrowkc sparrowkc is offline
Registered User
AKA: Mark
FRC #1986 (Team Titanium)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Lees Summit
Posts: 114
sparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to behold
keeping orientation with gyro

I am using Kevin Watson's sensor code, And I want to keep the robot in a constant orientation (We have mecannums).

My current method tends to over correct while strafing, and starts to oscilate. Has anybody done this in the past? Tomorrow I am going to do some testing to get some values for an equation that will take into account rotational velocity and determine a coast down time so that the robot doesn't overshoot so much.

Currently I find a turn value with
turn = .14111*tempgyro+127;
and then put turn through my limit function.