renamed the ins_ppzuavimu module to imu_ppzuav and moved the source files to sensors. renamed ins_aspirin_via_i2c module to imu_aspirin_i2c

This commit is contained in:
Felix Ruess
2011-07-20 21:10:58 +02:00
parent e56ab4e7d0
commit bf0ace2f3d
9 changed files with 67 additions and 40 deletions
@@ -1,9 +1,9 @@
IMU_PPZUAVIMU_CFLAGS = -DUSE_IMU
IMU_PPZUAVIMU_CFLAGS += -DIMU_TYPE_H=\"modules/ins/ins_ppzuavimu.h\"
IMU_PPZUAV_CFLAGS = -DUSE_IMU
IMU_PPZUAV_CFLAGS += -DIMU_TYPE_H=\"modules/sensors/imu_ppzuav.h\"
IMU_PPZUAVIMU_SRCS = $(SRC_SUBSYSTEMS)/imu.c \
$(SRC_MODULES)/ins/ins_ppzuavimu.c
IMU_PPZUAV_SRCS = $(SRC_SUBSYSTEMS)/imu.c \
$(SRC_MODULES)/sensors/imu_ppzuav.c
IMU_PPZUAVIMU_CFLAGS += -DUSE_I2C
@@ -15,8 +15,8 @@ else ifeq ($(ARCH), lpc21)
IMU_PPZUAVIMU_CFLAGS += -DPPZUAVIMU_I2C_DEVICE=i2c0
endif
ap.CFLAGS += $(IMU_PPZUAVIMU_CFLAGS)
ap.srcs += $(IMU_PPZUAVIMU_SRCS)
ap.CFLAGS += $(IMU_PPZUAV_CFLAGS)
ap.srcs += $(IMU_PPZUAV_SRCS)
ap.CFLAGS += -DAHRS_MAG_UPDATE_YAW_ONLY
+25
View File
@@ -0,0 +1,25 @@
<!DOCTYPE module SYSTEM "module.dtd">
<module name="imu_aspirin_i2c" dir="sensors">
<!-- <depend conflict="ins" -->
<header>
<file name="imu_ppzuav.h"/>
</header>
<!-- default imu stuff -->
<init fun="imu_impl_init()"/>
<periodic fun="imu_periodic()" freq="60"/>
<!-- ImuEvent called directly from main_ap -->
<!-- extras to become a usefull module -->
<periodic fun="ppzuavimu_module_downlink_raw()" freq="5"/>
<event fun="ppzuavimu_module_event()"/>
<makefile>
<file name="imu_ppzuav.c"/>
<define name="PPZUAVIMU_I2C_DEVICE" value="i2c0" />
<define name="USE_I2C" />
<define name="USE_I2C0" />
<define name="ASPIRIN_IMU" />
</makefile>
</module>
+24
View File
@@ -0,0 +1,24 @@
<!DOCTYPE module SYSTEM "module.dtd">
<module name="imu_ppzuav" dir="sensors">
<!-- <depend conflict="ins" -->
<header>
<file name="imu_ppzuav.h"/>
</header>
<!-- default imu stuff -->
<init fun="imu_impl_init()"/>
<periodic fun="imu_periodic()" freq="60"/>
<!-- ImuEvent called directly from main_ap -->
<!-- extras to become a usefull module -->
<periodic fun="ppzuavimu_module_downlink_raw()" freq="5"/>
<event fun="ppzuavimu_module_event()"/>
<makefile target="ap">
<file name="imu_ppzuav.c"/>
<define name="PPZUAVIMU_I2C_DEVICE" value="i2c0" />
<define name="USE_I2C" />
<define name="USE_I2C0" />
</makefile>
</module>
+3 -14
View File
@@ -6,20 +6,9 @@
<file name="ins_ppzuavimu.h"/>
</header>
<!-- default imu stuff -->
<init fun="imu_impl_init()"/>
<periodic fun="imu_periodic()" freq="60"/>
<!-- ImuEvent called directly from main_ap -->
<!-- extras to become a usefull module -->
<periodic fun="ppzuavimu_module_downlink_raw()" freq="5"/>
<event fun="ppzuavimu_module_event()"/>
<makefile>
<file name="ins_ppzuavimu.c"/>
<define name="PPZUAVIMU_I2C_DEVICE" value="i2c0" />
<define name="USE_I2C" />
<define name="USE_I2C0" />
<define name="ASPIRIN_IMU" />
<raw>
$(error The ins_aspirin_via_i2c module has been renamed, please replace the name="ins_aspirin_via_i2c.xml" with name="imu_aspirin_i2c.xml" in the load tag of your airframe file modules section.)
</raw>
</makefile>
</module>
+5 -16
View File
@@ -1,24 +1,13 @@
<!DOCTYPE module SYSTEM "module.dtd">
<module name="ins_ppzuavimu" dir="ins">
<!-- <depend conflict="ins" -->
<header>
<file name="ins_ppzuavimu.h"/>
<file name="imu_ppzuav.h"/>
</header>
<!-- default imu stuff -->
<init fun="imu_impl_init()"/>
<periodic fun="imu_periodic()" freq="60"/>
<!-- ImuEvent called directly from main_ap -->
<!-- extras to become a usefull module -->
<periodic fun="ppzuavimu_module_downlink_raw()" freq="5"/>
<event fun="ppzuavimu_module_event()"/>
<makefile>
<file name="ins_ppzuavimu.c"/>
<define name="PPZUAVIMU_I2C_DEVICE" value="i2c0" />
<define name="USE_I2C" />
<define name="USE_I2C0" />
<makefile target="ap">
<raw>
$(error The ins_ppzuavimu module has been renamed, please replace the name="ins_ppzuavimu.xml" with name="imu_ppzuav.xml" in the load tag of your airframe file modules section.)
</raw>
</makefile>
</module>
@@ -19,7 +19,7 @@
*/
#include <math.h>
#include "ins_ppzuavimu.h"
#include "imu_ppzuav.h"
#include "mcu_periph/i2c.h"
#include "led.h"