Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Using gyro with other analog sensors...again (http://www.chiefdelphi.com/forums/showthread.php?t=34961)

demerski 19-02-2005 08:23

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


All times are GMT -5. The time now is 12:00.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi