Go to Post So I guess this is just another case of someone reinventing the leg? - petek [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 02-02-2006, 10:54
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: EasyC Timer and Gyro questions

Quote:
Originally Posted by TubaMorg
So for the gyro yaw rate, we are using a 300 deg/sec gyro, so 5 mv/deg/sec. However, the ADC still returns 0-1024 right? It's just a matter of scaling (which we've implemented for heading conversion).
Sorry about that... I was assuming you were using the kit gyro.

You are correct, if you use a different gyro, then just look at the gyro spec. And the ADC will return a 10 bit value between 0-1023 (1024 possible values).
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #2   Spotlight this post!  
Unread 04-02-2006, 00:33
Dillon Compton Dillon Compton is offline
Jack-Of-All-Trades
FRC #1391 (Metal Moose)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: Malvern, PA
Posts: 186
Dillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud ofDillon Compton has much to be proud of
Send a message via AIM to Dillon Compton
Re: EasyC Timer and Gyro questions

My team is interested in using a slightly more accurate gyro than the one in the KoP...80deg/sec probably wont be enough to do what we want it to do. Can anyone give me an idea of where to start with the code needed in easy C to do this? We plan on using one from the same manufacturer, can I still drag and drop or do I need to write an original function? What is the relationship between yaw rate (the 0-1024 number, I assume?), and degrees rotation?

Thanks,
Dillon
__________________
www.metalmoose.com
  #3   Spotlight this post!  
Unread 04-02-2006, 17:52
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: EasyC Timer and Gyro questions

Quote:
Originally Posted by Dillon Compton
My team is interested in using a slightly more accurate gyro than the one in the KoP...80deg/sec probably wont be enough to do what we want it to do. Can anyone give me an idea of where to start with the code needed in easy C to do this? We plan on using one from the same manufacturer, can I still drag and drop or do I need to write an original function? What is the relationship between yaw rate (the 0-1024 number, I assume?), and degrees rotation?

Thanks,
Dillon
It turns out you can use the existing block and just scale the output. Check out this thread (down at the bottom).
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #4   Spotlight this post!  
Unread 09-02-2006, 19:43
MarkVH's Avatar
MarkVH MarkVH is offline
Registered User
AKA: Mark VanHaitsma
FRC #0288 (RoboDawgs)
Team Role: College Student
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Grandville
Posts: 30
MarkVH is on a distinguished road
Re: EasyC Timer and Gyro questions

does the gyro function in easyc return the angle in radians or degrees?
This is my first time using a gyro.
  #5   Spotlight this post!  
Unread 09-02-2006, 21:19
TubaMorg TubaMorg is offline
Programmermechanicalelect ricalcoach
AKA: Dan
FRC #1480 (Robatos Locos)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Houston
Posts: 450
TubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond reputeTubaMorg has a reputation beyond repute
Re: EasyC Timer and Gyro questions

Quote:
Originally Posted by MarkVH
does the gyro function in easyc return the angle in radians or degrees?
This is my first time using a gyro.
The EasyC call GetGyroAngle(port number) returns the heading in tenths of a degree. Check out the Help section in EasyC. It does a good job of explaining how each of the EasyC functions work.

Last edited by TubaMorg : 09-02-2006 at 21:21.
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
Accelerometer code ImmortalAres Programming 28 04-06-2005 01:02
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
Using gyro with other analog sensors...again demerski Programming 0 19-02-2005 08:23


All times are GMT -5. The time now is 14:04.

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