|
From: | Gautier Hattenberger |
Subject: | Re: [Paparazzi-devel] ADC Codes |
Date: | Thu, 02 Oct 2008 18:07:11 +0200 |
User-agent: | Thunderbird 2.0.0.17 (X11/20080925) |
Hi,If you just want to read the value of some ADC from the ground, you just need to use the "adc_generic" code. This will automaticaly send 1 or 2 adc values (you can read them with the messages application).
To use this code:ap.CFLAGS += -DUSE_ADC_GENERIC -DADC_CHANNEL_GENERIC1=ADC_X -DUSE_ADC_X [-DADC_CHANNEL_GENERIC1=ADC_Y -DUSE_ADC_Y]
ap.srcs += adc_generic.c where ADC_X and ADC_Y are of course the channel you want to read ! (maybe a flag is missing, let me know if it doesn't work) Gautier Brendan Chen a écrit :
Hi all, What kind of ADC codes should I use if i just simply want to plug in an analog voltage from sensors? And I would like to transmit that converted value to the GCS, I have the receiving end sorted ( I think ) but I was wondering if an of the xml files I may need to simply modify to get the ADC to work with a specific channel. Also how would I connect the converted value and get that sent via wireless downlink? Thanks Kind Regards, Brendan _______________________________________________ Paparazzi-devel mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |