[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Sonar module

From: Felix Ruess
Subject: Re: [Paparazzi-devel] Sonar module
Date: Wed, 14 Mar 2012 18:46:11 +0100

ah, yes... on lisa we are currently missing some convenience defines for the ADCs, opened an issue for it:

So right now have to use the index directly:
0 for ADC_1, 1 for ADC_2, etc.... ADC_3 (so index 2) is already used for measuring supply voltage and not available anymore...
 <modules main_freq="512">
    <load name="sonar_maxbotix_booz.xml">
      <configure name="ADC_SONAR" value="0"/>
You will also end up with a stupid USE_0 define in that case, but that doesn't matter much.

Also the message BOOZ2_SONAR has nothing to do whith this module and in fact can probably be deleted.... it basically just contained 4 adc values...

Beware that if you use that module it will update your altitude estimate based on the sonar measurement... if you just want to read the sonar for testing, you are better of using the adc_generic module which will send the ADC_GENERIC message down.

Cheers, Felix

On Wed, Mar 14, 2012 at 6:18 PM, Loic Drumettaz <address@hidden> wrote:
I have tried ADC0, ADC1 to 4 without succes. I have tried 0, 1 to 4 and the compilation passes but then I have no message in telemetry where I have added the message BOOZ2_SONAR.

Have you tried ADC1 instead of ADC_1? 

Paparazzi-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]