Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ppzuav-imu as a <subsystem name=imu type=ppzuav>
- Loading branch information
Showing
8 changed files
with
71 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
IMU_PPZUAVIMU_CFLAGS = -DUSE_IMU | ||
IMU_PPZUAVIMU_CFLAGS += -DIMU_TYPE_H=\"modules/ins/ins_ppzuavimu.h\" | ||
|
||
IMU_PPZUAVIMU_SRCS = $(SRC_SUBSYSTEMS)/imu.c \ | ||
$(SRC_MODULES)/ins/ins_ppzuavimu.c | ||
|
||
|
||
IMU_PPZUAVIMU_CFLAGS += -DUSE_I2C | ||
ifdef STM32 | ||
IMU_PPZUAVIMU_CFLAGS += -DUSE_I2C2 | ||
IMU_PPZUAVIMU_CFLAGS += -DPPZUAVIMU_I2C_DEVICE=i2c2 | ||
else | ||
IMU_PPZUAVIMU_CFLAGS += -DUSE_I2C0 | ||
IMU_PPZUAVIMU_CFLAGS += -DPPZUAVIMU_I2C_DEVICE=i2c0 | ||
endif | ||
|
||
ap.CFLAGS += $(IMU_PPZUAVIMU_CFLAGS) | ||
ap.srcs += $(IMU_PPZUAVIMU_SRCS) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE module SYSTEM "module.dtd"> | ||
|
||
<module name="ins_aspirin_via_i2c" dir="ins"> | ||
<!-- <depend conflict="ins" --> | ||
<header> | ||
<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" /> | ||
</makefile> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters