View Single Post
  #4   Spotlight this post!  
Unread 13-02-2005, 16:12
jimfortytwo jimfortytwo is offline
Registered User
AKA: Jim Paulos
#0418 (Purple Haze)
Team Role: Student
 
Join Date: Feb 2003
Rookie Year: 2002
Location: austin
Posts: 65
jimfortytwo is just really nicejimfortytwo is just really nicejimfortytwo is just really nicejimfortytwo is just really nicejimfortytwo is just really nice
Send a message via ICQ to jimfortytwo Send a message via AIM to jimfortytwo Send a message via Yahoo to jimfortytwo
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?