Go to Post Do not worry about the VEX camp versus FIRST camp issues. It is a huge marketplace. It is only about 4% penetrated. There is room for everyone. And competition is good for the consumer. - ebarker [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 05-02-2007, 10:14
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Master Code

Quote:
Originally Posted by JBotAlan View Post
Correct me if I'm wrong, but the gyroscope gives you an *analog* value; interrupts are irrelevant when working with analog sources.
You're not exactly wrong, but it sounds like you haven't worked with the gyro. In order to get the best results from a gyro-based control routine, the analog value must be sampled with extremely regular timing. Kevin Watson provides a framework for using the gyro which does use interrupts to do the analog conversions in the background.

Putting his encoder and gyro software together isn't particularly complicated, but getting the interrupt service routines combined properly does take some thought.
 


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
V13 Master Code Kingofl337 Programming 2 15-01-2007 22:49
Need: Master Code JamesBrown Programming 1 09-01-2007 21:53
Master code update Eldarion Control System 1 09-03-2006 21:14
Master Code 11? SteveO Programming 5 22-04-2005 19:48
Master Code? HolyOne207 Programming 4 12-01-2005 22:32


All times are GMT -5. The time now is 06:39.

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