Go to Post My lasting impression of 217 (for years now) has been based on how their robot looks, dynamically. It is poultry in motion. :) - Richard Wallace [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 19-02-2005, 08:23
demerski demerski is offline
Registered User
AKA: JJD
FRC #1027 (Mechatronic Maniacs)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2004
Location: West Springfield, MA
Posts: 5
demerski is an unknown quantity at this point
Using gyro with other analog sensors...again

Hi,

There's been a few discussions here about reading analog inputs when using the gyro code, but no solid solutions.

Based on Kevin's "interleaving" suggestion, we've tried to modify the timer interrupt handler to read the gyro on every other interrupt, and use the get_analog function to read the sensors in between...we've tried disabling the timer when servicing the interrupt, resetting the ADC, and so on...so far no success. We can either read the gyro, or the sensors, but not both.

We're not expert programmers here, but I would think using potentiometers and such with the gyro isn't that exotic of an idea...has anyone been able to do this?

Thanks in advance for any suggestions...

- JJD
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
Using gyro.c with other analog sensors no go Astronouth7303 Programming 17 03-01-2006 21:04
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
Why not analog sensors?? gnormhurst Programming 16 07-03-2004 16:14
Gyro Sensors fred Programming 12 22-02-2004 23:07


All times are GMT -5. The time now is 10:56.

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