View unanswered posts | View active topics It is currently Sun Jul 05, 2020 7:49 pm

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

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.


Mon Oct 10, 2011 7:05 pm
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1523
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.

Mon Oct 10, 2011 8:05 pm
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.