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.