Go to Post If the GDC doesn't want better teams to strap components on to other robots, they should design a game that doesn't require better teams to strap components on to other robots to win. - Tom Bottiglieri [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2007, 17:10
DustinB_3 DustinB_3 is offline
Registered User
FRC #0935 (Railerobotics)
Team Role: Leadership
 
Join Date: Nov 2005
Rookie Year: 2001
Location: Newton, Kansas
Posts: 78
DustinB_3 is an unknown quantity at this point
Bias Calc

I am using Kevin Watson's gyro code and I was wondering if the bias calculation carries over into autonomous. The reason I am asking is that I am trying to also use Kevin's navigation code and am having trouble changing the bias calculation in robot.c to fit his new from of bias calculation. Help is appreciated.
  #2   Spotlight this post!  
Unread 27-01-2007, 21:36
JonathanLKS JonathanLKS is offline
Code::Blocks
FRC #0610 (The Coyotes)
Team Role: Leadership
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Toronto
Posts: 36
JonathanLKS will become famous soon enough
Send a message via MSN to JonathanLKS
Re: Bias Calc

Once the bias of the gyro is calcuated once anywhere, it'll stay that way until you reset it or you turn of the RC (or something wierd happens to the RC's memory of course...).
Alternativly you could find the bias, output the bias, and then code the bias directly in using the number you found without actually calculating it at the start of the autonomous

P.S. If you don't have a consistent gyro the second part might not be the smartest thing, but if it seems to have the same bias all the time it can be a good idea (we used it last year)
  #3   Spotlight this post!  
Unread 27-01-2007, 23:04
DustinB_3 DustinB_3 is offline
Registered User
FRC #0935 (Railerobotics)
Team Role: Leadership
 
Join Date: Nov 2005
Rookie Year: 2001
Location: Newton, Kansas
Posts: 78
DustinB_3 is an unknown quantity at this point
Re: Bias Calc

Thanks. Thats very helpful. In robot.c there was a command called Calc_Gyro_Bias and the new encoder code doesn't have the same function. What would I do to do exactly the same thing or does this mean that I don't have to do the bias calculation that is in robot.c?

Last edited by DustinB_3 : 28-01-2007 at 13:29.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Motor Bias gshosford Motors 27 10-02-2006 01:35
Fly Wheel Moment Calc. Andrew Blair Technical Discussion 1 10-01-2006 09:15
Calc. Triangle Angle or Side Based on Ellipses? indieFan Math and Science 1 07-06-2004 21:25
Q-point Calc Comments... archiver 2000 2 24-06-2002 00:06
AP Calc Jeff Waegelin Chit-Chat 10 08-05-2002 21:08


All times are GMT -5. The time now is 23:53.

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