mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-06 02:52:42 +08:00
* [generator] generate unique ID and names table for modules * [state] add accessors for the state origin * [state] don't access directly to state origin, use getters * [state] filter inputs with module ID * [ahrs] convert AHRS modules to state input filter - selection of ahrs with settings from each module - init functions for each ahrs modules - remove old chimu * update unit test * [ins] decoupled INS implementation To allow multiple INS at the same time: - remove weak functions from ins.c - remove the INS_TYPE_H define - use ABI message to trigger INS reset * [state] protect for c++
44 lines
1.7 KiB
XML
44 lines
1.7 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="ahrs_madgwick" dir="ahrs" task="estimation">
|
|
<doc>
|
|
<description>
|
|
AHRS using IMU (accel, gyro) only with Madwick implementation.
|
|
</description>
|
|
<configure name="AHRS_MADGWICK_TYPE" value="AHRS_PRIMARY|AHRS_SECONDARY" description="set if the AHRS is the primary source (default) or one of the secondary sources"/>
|
|
<configure name="AHRS_ALIGNER_LED" value="1" description="LED number to indicate AHRS alignment, none to disable (default is board dependent)"/>
|
|
<define name="AHRS_MADWICK_IMU_ID" value="ABI_BROADCAST" description="ABI sender id of IMU to use"/>
|
|
</doc>
|
|
|
|
<settings>
|
|
<dl_settings>
|
|
<dl_settings NAME="AHRS madgwick">
|
|
<dl_setting var="ahrs_madgwick_enable" min="0" step="1" max="1" module="modules/ahrs/ahrs_madgwick_wrapper" values="DISABLE|ENABLE" handler="enable"/>
|
|
<dl_setting MAX="1" MIN="1" STEP="1" VAR="ahrs_madgwick.reset" shortname="reset"/>
|
|
</dl_settings>
|
|
</dl_settings>
|
|
</settings>
|
|
|
|
<dep>
|
|
<depends>ahrs_common,@imu</depends>
|
|
<provides>ahrs</provides>
|
|
</dep>
|
|
<header>
|
|
<file name="ahrs_madgwick_wrapper.h"/>
|
|
</header>
|
|
<init fun="ahrs_madgwick_wrapper_init()"/>
|
|
|
|
<makefile target="!sim|fbw">
|
|
<configure name="AHRS_MADGWICK_TYPE" default="AHRS_PRIMARY"/>
|
|
<define name="AHRS_MADGWICK_TYPE" value="$(AHRS_MADGWICK_TYPE)"/>
|
|
<configure name="USE_MAGNETOMETER" default="0"/>
|
|
<define name="USE_MAGNETOMETER" cond="ifeq (,$(findstring $(USE_MAGNETOMETER),0 FALSE))"/>
|
|
<file name="ahrs_madgwick.c"/>
|
|
<file name="ahrs_madgwick_wrapper.c"/>
|
|
<test>
|
|
<define name="AHRS_MADGWICK_TYPE" value="AHRS_PRIMARY"/>
|
|
</test>
|
|
</makefile>
|
|
</module>
|
|
|