Go to Post I do know a lot of teams need to be saved from themselves. - Karthik [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
  #1   Spotlight this post!  
Unread 25-01-2008, 22:54
Nuggets08 Nuggets08 is offline
Registered User
FRC #1737 (Project X Robotics)
Team Role: Programmer
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Excelsior Springs, MO
Posts: 11
Nuggets08 is on a distinguished road
This darn Gear Tooth Sensor

Alright, my team has been around for 3 years this year. I have been head programmer all three years. Now basically, our programming has been relatively simple in the past years. I have gotten a feel for how the PIC works, and the code's architecture, but there is something I have never touched: Interrupts.
Looking into Chief Delphi, looking for answers, I found things saying that you need to use interrupts to get the input from the Gear Tooth Sensor. This is a lot more programming than I anticipated at first for this thing. I was hoping for a simple check on rc_dig_in01, but that doesn't work. I found this out by trying it, and then looking on here to see why.

Alright, I'm rambling. Onto my question:
How can I use interrupts to tell when the GTS pulses? I don't care what direction it is spinning, I am combining the GTS and the gyro, to get a heading of the robot. I am just merely finding the distance traveled by one wheel, and then doing the same on the other wheel.
Thank you!
--Adam
__________________
-Nuggets
Project X Robotics
Team 1737
Excelsior Springs, MO
Attending: KC-Metro Regional
Project Manager, Lead Programmer
 


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
Gear Tooth Sensor marco_alchemy Electrical 7 06-02-2008 09:54
Gear Tooth Sensor Zoom Programming 46 22-01-2008 08:05
Gear Tooth Sensor Nathan Programming 4 12-01-2008 15:09
Gear Tooth Sensor? Raikon Kit & Additional Hardware 3 09-02-2007 16:40
Gear Tooth Sensor AMIRAM Electrical 2 22-01-2006 04:09


All times are GMT -5. The time now is 23:53.

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