mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-09 22:49:53 +08:00
17d32772c0
* [imu] convert imu subsystems to modules Also - get rid of explicit imu init|event|periodic calls in main - each imu implementation has their own imu_x_init/event/periodic * [imu] fix some imu modules * [imu] fix bad paths * [imu] add imu_common module that every implementation autoloads and put body_to_imu settings in imu_common module * [imu] fix imu_ardrone2 * [conf] add imu_common settings module in conf_example and conf_tests
36 lines
1.2 KiB
XML
36 lines
1.2 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="ins_xsens" dir="ins">
|
|
<doc>
|
|
<description>
|
|
XSens IMU.
|
|
Used to just provide IMU measurements.
|
|
For use with an external AHRS algorithm.
|
|
</description>
|
|
<configure name="XSENS_PORT" value="uart1" description="The (uart) port the XSens is connected to"/>
|
|
<configure name="XSENS_BAUD" value="B115200" description="UART baud rate"/>
|
|
</doc>
|
|
<autoload name="imu_common"/>
|
|
<autoload name="imu_nps"/>
|
|
<header>
|
|
<file name="imu_xsens.h"/>
|
|
</header>
|
|
<init fun="imu_xsens_init()"/>
|
|
<event fun="imu_xsens_event()"/>
|
|
<makefile target="ap">
|
|
<file name="xsens.c"/>
|
|
<file name="xsens_common.c"/>
|
|
<file name="imu_xsens.c"/>
|
|
|
|
<configure name="XSENS_PORT" default="uart1" case="upper|lower"/>
|
|
<configure name="XSENS_BAUD" default="B115200"/>
|
|
<define name="USE_$(XSENS_PORT_UPPER)" value="1"/>
|
|
<define name="XSENS_LINK" value="$(XSENS_PORT_LOWER)"/>
|
|
<define name="$(XSENS_PORT_UPPER)_BAUD" value="$(XSENS_BAUD)"/>
|
|
<!-- TODO: check output mode -->
|
|
<define name="XSENS_OUTPUT_MODE" value="0x1836"/>
|
|
<define name="IMU_TYPE_H" value="modules/ins/imu_xsens.h" type="string"/>
|
|
</makefile>
|
|
</module>
|
|
|