paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Fwd: Getting data from Aspirin onboard baro.


From: Michal Podhradsky
Subject: Re: [Paparazzi-devel] Fwd: Getting data from Aspirin onboard baro.
Date: Thu, 12 Dec 2013 09:48:46 +0100

Hi,

I remember using Aspirin 2.1 about a year ago. The Aspirin driver does not use the pressure sensor on auxiliary i2c bus. So I had to refactor the older drivers to talk to MS5611 over i2c2 bus. I believe this is currently handled here https://github.com/paparazzi/paparazzi/blob/master/sw/airborne/boards/baro_board_ms5611_i2c.c

So to use baro on Aspirin 2.1 you have to bridge the jumpers on Aspirin to allow i2c2 and then define that you are using MS5611 on I2C. Would be neat to have pressure read through MPU6000, but it is probably not worth the effort.

 M


On Thu, Dec 12, 2013 at 2:11 AM, Tim Sindle <address@hidden> wrote:
Hi, 
Also wondering the same question with similar configuration file. If someone could let us know if they could get the MS5611 working with the baro on the Aspirin v2.1 r1, which is fixed on to Lisa/M v2.0. If not that's fine, but it'll save time knowing where to start. 

The fact that there was a Aspirin release V2.2 with he baro on the SPI directly tells me that that this was done for a reason. Was it because it wasn't possible to get readings through the MPU6000 with it on the I2C bus, or was the code never written? Or is the config setup file wrong?

Many thanks, 
Tim


On 10 December 2013 05:21, Helge Walle <address@hidden> wrote:
Hi again,

Referring to my mail and attached airframe file below.

I am still not able to get data from the baro on my Aspirin v2.1 r1, which is fixed on my Lisa/M v2.0. I use the default configuration on the Aspirin with internal I2C bus on the imu board, and SPI communication of all measurements to Lisa/M..

Yesterday I took measurements with a logic analyzer on the I2C bus. It seems there are only messages to/from the HMC5883 magnetometer present on the bus. I find only communication with a unit with I2C address 0x3C. The MS5611 barometer does not seem to be polled.

If someone get baro data from this hardware configuration, could you please check if my configuration file is ok? I have tried to dig into the barometer code, but so far without success.

Thanks,
Helge.


 
---------- Forwarded message ----------
From: Helge Walle <address@hidden>
Date: 2013/11/27
Subject: Fwd: Getting data from Aspirin onboard baro.
To: "address@hidden" <address@hidden>


Hi,

I would like to verify some features of my Lisa/M 2.0 board with onboard Aspirin IMU 2.1 r1. I have made an airframe file for it, please see the attachment.

As for the the Aspirin, R1 and R2 are placed, and JP4 and JP5 are not connected.

I get messages from the gyro and accelerometer all right, and the PFD shows correct movements in GCS when I move the board. However I do not think I get anything from the baro.

These lines are in my firmware section:

<firmware name="fixedwing">
<target name="ap" board="lisa_m_2.0">
<configure name="LISA_M_BARO" value="BARO_MS5611_SPI"/>
<configure name="USE_BARO_BOARD" value="TRUE"/><!-- default if board has baro -->
<define name="USE_BAROMETER" value="TRUE"/><!-- if ins_alt_float is used -->
<configure name="PERIODIC_FREQUENCY" value="120"/>
<configure name="AHRS_PROPAGATE_FREQUENCY" value="100"/>
<configure name="AHRS_CORRECT_FREQUENCY" value="100"/>
<define name="AHRS_TRIGGERED_ATTITUDE_LOOP" />
<configure name="AHRS_ALIGNER_LED" value="3"/>
<configure name="CPU_LED" value="3"/>
<define name="PERIOD_NAVIGATION_0" /><!-- stop NAVIGATION msg in main_ap.c -->
</target>


I commented out the #if DEBUG and #endif lines in sw/airborne/boards/baro_board_ms5611_spi.c to get the BARO_MS5611 message. The message shows only hPa=0. and deg_celsius=20.

The BARO_RAW message shows float abs=0. and float diff=0.

It seems I do not get values from the baro.

I use Paparazzi version v5.1_devel-664-g7c425ae-dirty.

Could anyone please point me in the right direction, how to get the baro values?

Thanks,
Helge.




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



_______________________________________________
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]