paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] barometer ms5611


From: Felix Ruess
Subject: Re: [Paparazzi-devel] barometer ms5611
Date: Mon, 23 Nov 2015 00:06:14 +0100

Hi Cedric,

the baro_ms5611_spi module works fine on my Lisa/MX board here with latest master (v5.7_devel-657-g0eb55b6)
What paparazzi_version are you using?

Are you sure you have the correct SPI slave select GPIO?
If yes, can you plz check if the correct flags (USE_SPI_SLAVE0, etc) are set (var/aircrafts/myaircraft/ap_srcs.list)

Felix

On Sun, Nov 22, 2015 at 10:34 PM, Cédric Marzer <address@hidden> wrote:
Ok, I added that to the airframe file :

    <target name="ap" board="imp_v5">
    <configure name="USE_BARO_BOARD" value="FALSE"/>
    <configure name="USE_BARO_MS5611" value="TRUE"/>
    </target>

and that :

 <modules main_freq="512">
    <load name="gps_ubx_ucenter.xml">
    </load>
    <load name="geo_mag.xml"/>
    <load name="imp_osd.xml"/> 
    <load name="baro_ms5611_spi.xml">
        <define name="MS5611_SPI_DEV" value="spi2"/>
        <define name="MS5611_SLAVE_IDX" value="SPI_SLAVE0"/>
        <define name="SENSOR_SYNC_SEND"/>
    </load> 
  </modules>

but it doesn't seem to work :
no BARO_MS5611 message is fired and the baro reading in the vertical loop stays at 0 m.
It is as if either the event function is never called or the barometer cannot be read…
That is a bit frustrating... 



Le 22 nov. 2015 à 18:58, Felix Ruess <address@hidden> a écrit :

Hi Cedric,

I think it would be easier (and cleaner) if you don't use baro_board, but instead load the baro_ms5611_spi module.
http://docs.paparazziuav.org/latest/module__baro_ms5611_spi.html

Cheers, Felix



_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel



reply via email to

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