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