Go to Post Fire and smoke are great if you're into Battlebots, but we like to avoid them in FIRST competitions. - [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 17-02-2006, 07:22
gnirts gnirts is offline
Suspicious pointer conversion
AKA: Robinson Levin
FRC #1648 (The Gearbox Gangstaz)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: ATL
Posts: 116
gnirts will become famous soon enough
Gyro Calibration

Instructions contained within gyro.h gave a procedure for adjusting the GYRO_CAL_FACTOR from the default value of 1 (1000/1000) to a value that more accurately reflects the characteristics of your gyro.

Two things:
  1. I accidentally spun the gyro toward -1800 instead of +1800. I thought this would not make a difference if the percent error is still the same but apparently is does. What should GYRO_CAL_FACTOR be if instead of receiving -1800 as the actual value I got -1864? If you look at the code the math behind seems to make a GYRO_CAL_FACTOR of 1036/1000 detrimental to accuracy.
  2. How often do I need to repeat this procedure? Once every week or so? The instrument used to spin the gyro exactly a certain number of degrees weighs about 90 pounds and doesn't stay within easy access of the school. This also means I will not be able to repeat the calibration unless we bring this hunk of metal to the regional competition.
Thanks in advance,
Robinson

[Quick Secondary Question (sorry): does setting a digital output high mean setting it to 254, 255, or 1?]
__________________
'... who are you, then?'
'I am part of that power which eternally
wills evil and eternally works good.'
Goethe, Faust
  #2   Spotlight this post!  
Unread 17-02-2006, 08:44
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Gyro Calibration

You should only have to calibrate once.

Not sure about + or - on the 1800 - but rather than 1036/1000, you could do 1000/965.

Secondary answer: Setting a digital output high means 1.
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
Gyroscope Code Kevin Watson Programming 65 01-03-2008 23:46
Gyro Calibration ImmortalAres Programming 1 07-06-2005 13:29
Updated: Example Gyro Interface Code Kevin Watson Programming 2 28-03-2005 04:36
Example gyro code released. Kevin Watson Programming 60 17-03-2005 18:32
Gyro Calibration roboticsjenkins Programming 11 21-02-2005 20:39


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

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