|
From: | Edixon Giraldo |
Subject: | RE: [Paparazzi-devel] IR Sensor Neutral is 735 !!?? |
Date: | Thu, 12 Aug 2010 00:48:39 -0500 |
Yes, I did check that and it was just as you described. I did, however, changed from TILTED to ALIGNED and try to recalibrate. This time I did get a value that was much better and was able to get a response from both sensors of the vertical unit. This time the value was 478. It seems the sensors are fine. Thanks for the info. Eddie. From: address@hidden Subject: Re: [Paparazzi-devel] IR Sensor Neutral is 735 !!?? Date: Wed, 11 Aug 2010 20:40:39 -0700 To: address@hidden 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: _______________________________________________ Paparazzi-devel mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/paparazzi-devel |
[Prev in Thread] | Current Thread | [Next in Thread] |