View unanswered posts | View active topics It is currently Sun Sep 21, 2014 6:43 am






Reply to topic  [ 2 posts ] 
HiTechnic Gyroscope Code 
Author Message
Rookie

Joined: Wed Oct 05, 2011 2:49 pm
Posts: 12
Post HiTechnic Gyroscope Code
Does somebody have a very basic Gyroscope code that can be used to turn a robot 90 degrees.
I know there are all sorts of issues with drift that can be addressed later, but I would like to play
around with the basic functions of the gyroscope to have it turn a specific set of degrees.

Thanks.


Mon Oct 10, 2011 7:05 pm
Profile
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post Re: HiTechnic Gyroscope Code
Unfortunately, the gyro only gives you the rate of turning (angular velocity) not the heading. So you must integrate the turn rate into heading before you can use it to keep track of how much you have turned. It's probably not basic code, but the following thread has detail description on one way to use gyro to turn accurately.
viewtopic.php?f=52&t=3152


Mon Oct 10, 2011 8:05 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.