|
Re: Using gyro.c with other analog sensors no go
We have a similar situation, where we would like to juggle inputs from a pot and the gyro.
Once you call Disable_Gyro(), can you turn it back on again? In autonomous mode we'd be perfectly content to read only from the gyro while turning, then read from our pot on the straightaways, and then go back to reading from the gyro for a bit.
Is doing that more complicated than writting a complimentary function to Disable_Gyro() that just flips those two interupt bits? Or would we need a call to Initialize_Gyro()? Or do neither of those options work?
|