Quote:
Originally Posted by EFastring
I tried hooking up a PWM cable to analog input 1, and connecting it to the gyro (white to TW, black to GB, red to 5R) and adding a printf line to user_routines.c to display rc_ana_in01.
I get a constant output of 135 regardless of if I twist the gyro or even have it plugged in.
Does the gyro need to be initialized, calibrated, etc. before it will function at all, is my printf referencing the wrong variable, or am I doing something else wrong to see if the gyro is simply functioning at all?
|
rc_ana_in01 is a constant. You have to use
Get_Analog_Value( rc_ana_in01 ) in order to get the actual analog value.