Files
paparazzi/conf/modules/ahrs_vectornav.xml
T
Gautier Hattenberger dfd8e93927 State interface input filter (#3409)
* [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++
2024-12-03 22:34:27 +01:00

50 lines
1.8 KiB
XML

<!DOCTYPE module SYSTEM "module.dtd">
<module name="ahrs_vectornav" dir="ahrs" task="estimation">
<doc>
<description>
Vectornav VN200 over uart used as AHRS.
</description>
<configure name="AHRS_VECTORNAV_TYPE" value="AHRS_PRIMARY|AHRS_SECONDARY" description="set if the AHRS is the primary source (default) or one of the secondary sources"/>
<configure name="VN_PORT" value="uart3" description="UART to use"/>
<configure name="VN_BAUD" value="B921600" description="UART baudrate"/>
</doc>
<settings>
<dl_settings>
<dl_settings NAME="AHRS vectornav">
<dl_setting var="ahrs_vectornav_enable" min="0" step="1" max="1" module="modules/ahrs/ahrs_vectornav_wrapper" values="DISABLE|ENABLE" handler="enable"/>
</dl_settings>
</dl_settings>
</settings>
<dep>
<depends>uart</depends>
<provides>ahrs,imu</provides>
</dep>
<header>
<file name="ahrs_vectornav_wrapper.h"/>
</header>
<init fun="ahrs_vectornav_wrapper_init()"/>
<event fun="ahrs_vectornav_event()"/>
<makefile target="ap">
<configure name="AHRS_VECTORNAV_TYPE" default="AHRS_PRIMARY"/>
<define name="AHRS_VECTORNAV_TYPE" value="$(AHRS_VECTORNAV_TYPE)"/>
<configure name="VN_PORT" default="uart3" case="upper|lower"/>
<configure name="VN_BAUD" default="B921600"/>
<define name="USE_$(VN_PORT_UPPER)"/>
<define name="VN_PORT" value="$(VN_PORT_LOWER)"/>
<define name="$(VN_PORT_UPPER)_BAUD" value="$(VN_BAUD)"/>
<file name="vn200_serial.c" dir="peripherals"/>
<file name="ahrs.c"/>
<file name="ahrs_vectornav.c"/>
<file name="ahrs_vectornav_wrapper.c"/>
<define name="USE_AHRS"/>
<test>
<define name="AHRS_VECTORNAV_TYPE" value="AHRS_PRIMARY"/>
<define name="VN_PORT" value="uart0"/>
<define name="USE_UART0"/>
</test>
</makefile>
</module>