mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-29 02:38:07 +08:00
[baro] adapt baro_board module to the new interface
Some modules can be used directly, some needs some more changes or adaptation
This commit is contained in:
@@ -2,30 +2,14 @@
|
||||
|
||||
<module name="baro_board" dir="sensors">
|
||||
<doc>
|
||||
<description>Temporary hack to use baro interface on fixedwing</description>
|
||||
<description>Allow to use baro interface on fixedwing with external barometers</description>
|
||||
</doc>
|
||||
<header>
|
||||
<file name="baro_board_module.h"/>
|
||||
</header>
|
||||
<init fun="baro_init()"/>
|
||||
<periodic fun="baro_periodic()" freq="60."/>
|
||||
<event fun="BaroEvent(baro_abs,baro_diff)"/>
|
||||
<makefile target="ap">
|
||||
<file name="baro_board.c" dir="boards/$(BOARD)"/>
|
||||
<define name="USE_BARO_AS_ALTIMETER"/>
|
||||
<raw>
|
||||
ifeq ($(BOARD), navgo)
|
||||
ap.CFLAGS += -DUSE_I2C1 -DUSE_ADS1114_1
|
||||
ap.CFLAGS += -DADS1114_I2C_DEVICE=i2c1
|
||||
ap.srcs += peripherals/ads1114.c
|
||||
else ifeq ($(BOARD), umarim)
|
||||
ap.CFLAGS += -DUSE_I2C1 -DUSE_ADS1114_1
|
||||
ap.CFLAGS += -DADS1114_I2C_DEVICE=i2c1
|
||||
ap.srcs += peripherals/ads1114.c
|
||||
else ifeq ($(BOARD), lisa_l)
|
||||
ap.CFLAGS += -DUSE_I2C2
|
||||
endif
|
||||
</raw>
|
||||
<file name="baro_board_module.c"/>
|
||||
<define name="USE_BAROMETER"/>
|
||||
</makefile>
|
||||
</module>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user