|
From: | David Conger |
Subject: | Re: [Paparazzi-devel] IR Sensor Neutral is 735 !!?? |
Date: | Wed, 11 Aug 2010 20:40:39 -0700 |
What ADC is setup in your airframe file for IR_TOP? On a TWOG the 3-pin connector is ADC_0. Just want to be sure it's not something simple as that value. This code should work: <section name="adc" prefix="ADC_CHANNEL_"> <define name="IR1" value="ADC_1"/> <define name="IR2" value="ADC_2"/> <define name="IR_TOP" value="ADC_0"/> <define name="IR_NB_SAMPLES" value="16"/> </section> with this in the makefile section: ap.CFLAGS += -DADC -DUSE_ADC_0 -DUSE_ADC_1 -DUSE_ADC_2 ap.srcs += $(SRC_ARCH)/adc_hw.c Be sure not to enable ADC you are not using. -David On Aug 11, 2010, at 5:11 PM, Edixon Giraldo wrote: |
[Prev in Thread] | Current Thread | [Next in Thread] |