View Single Post
  #2   Spotlight this post!  
Unread 09-03-2004, 19:23
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Wierd gyro code problems...pls help

you cant equate the gyro to the analog input - you have to use the Get_Analog_Value() function like this:

gyro1 = Get_Analog_Value( rc_ana_in01);

its detailed in the 2004 Programming Reference Manual from innovationfirst.com - page 16

and if you want to shift it down to 8 bits its the other way

gyro1 = gyro1>>2;

:^)