|
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;
:^)
|