Go to Post I think that is important to note that winning teams have won without bending the rules. GP allows you to go ask, investigate and take pictures. Learn from others when you have the chance. - Al Skierkiewicz [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 14-12-2008, 05:59
beefy1 beefy1 is offline
Registered User
None #2669
 
Join Date: Dec 2008
Location: Israel
Posts: 12
beefy1 is an unknown quantity at this point
gyro values

hi, im pretty new with the wpi library, some one can tell me which values does the gyro yield and what they are symbolized, i mean, if the gyro is about to 360 degrees - then the value will be zero or 360? , some special values that can screw up my plan.

Last edited by beefy1 : 14-12-2008 at 06:05.
  #2   Spotlight this post!  
Unread 14-12-2008, 11:37
James Tonthat James Tonthat is offline
Registered User
FRC #0148 (Robowranglers)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Greenville, TX
Posts: 303
James Tonthat has a reputation beyond reputeJames Tonthat has a reputation beyond reputeJames Tonthat has a reputation beyond reputeJames Tonthat has a reputation beyond reputeJames Tonthat has a reputation beyond reputeJames Tonthat has a reputation beyond reputeJames Tonthat has a reputation beyond reputeJames Tonthat has a reputation beyond reputeJames Tonthat has a reputation beyond reputeJames Tonthat has a reputation beyond reputeJames Tonthat has a reputation beyond repute
Re: gyro values

You kinda have to understand the gyro works. It detects in rate of change in angle (d/dtheta), so you have to integrate (calculus, yay!) the input data to get the angle.

Now how the method works, (or I think it works, I haven't played around with the new WPI lib) is that it integrates the input data while subtracting the initial voltage (something like 1.25v).

To answer your question, lets say you start off. You turn it on and the sensor intializes. The angle is then zero, you turn it counterclock wise, the values goes from 0 to 360 then to 720, etc. etc. but if you turn it on and turn it clockwise, you get values from -1 to -360 then to -720 and onwards.
  #3   Spotlight this post!  
Unread 15-12-2008, 09:05
charrisTTI charrisTTI is offline
Ramblin' Wreck
AKA: Charles Harris
FRC #0623
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Vienna, VA
Posts: 106
charrisTTI has a spectacular aura aboutcharrisTTI has a spectacular aura about
Send a message via AIM to charrisTTI
Re: gyro values

Before you can use any sensor in software, you need to start with the data sheet for the sensor.

Here is the link to the sensor manual for last years kit:

http://www.usfirst.org/uploadedFiles...sor_Manual.pdf

For full information determine the manufacturer and the manufacturer's part number for the component of interest and go the manufacturer's website for a complete data sheet.
__________________
FRC 623 2003,2004,2005,2006,2007,2008, 2009, 2010, 2011
FRC 1900 2007
FVC 60 and 193 2006
FVC 3271 2007
FTC 226 and 369 2008, 2009, 2010, 2011
FTC 3806 2010
  #4   Spotlight this post!  
Unread 15-12-2008, 09:51
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,586
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: gyro values

You shouldn't assume you can use any sentinel values from the gyro angle.
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
penalties values??? colin340 Rules/Strategy 4 08-03-2008 21:37
Paint values capenga Programming 1 20-02-2005 13:25
Servo Values DanDon Motors 8 14-02-2005 15:49
Color Values WesleyBalmer Programming 3 15-01-2005 22:26
PWM Values... Ian W. Programming 4 17-03-2002 21:53


All times are GMT -5. The time now is 19:28.

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