mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-06 02:52:42 +08:00
- old airframe with single imu configuration will continue to work, ABI id is automatically found - mag modules require @imu to guarantee init order, multiple calls of imu_init is no longer needed - ABI_BROADCAST id is used by default and then replaced by correct ID - imu_set_default_config will override user conf if params are not NULL
42 lines
1.7 KiB
XML
42 lines
1.7 KiB
XML
<!DOCTYPE module SYSTEM "module.dtd">
|
|
|
|
<module name="mag_pitot_uart" dir="sensors" task="sensors">
|
|
<doc>
|
|
<description>Remotely located magnetometer and pitot tube over uart (RS232) communication</description>
|
|
<configure name="MAG_PITOT_PORT" value="UART5" description="select which uart it is connected to"/>
|
|
<configure name="MAG_PITOT_BAUD" value="125000" description="set the baudrate of the uart"/>
|
|
<define name="IMU_TO_MAG_PHI" value="0" description="rotation of magneto compared to the magneto in roll axis"/>
|
|
<define name="IMU_TO_MAG_THETA" value="0" description="rotation of magneto compared to the magneto in pitch axis"/>
|
|
<define name="IMU_TO_MAG_PSI" value="0" description="rotation of magneto compared to the magneto in yaw axis"/>
|
|
</doc>
|
|
<dep>
|
|
<depends>uart,@imu</depends>
|
|
<provides>mag</provides>
|
|
</dep>
|
|
<header>
|
|
<file name="mag_pitot_uart.h"/>
|
|
</header>
|
|
<init fun="mag_pitot_init()"/>
|
|
<event fun="mag_pitot_event()"/>
|
|
<makefile>
|
|
<!-- Configure default UART port and baudrate -->
|
|
<configure name="MAG_PITOT_PORT" default="UART5" case="upper|lower"/>
|
|
<configure name="MAG_PITOT_BAUD" default="250000"/>
|
|
|
|
<!-- Enable UART and set baudrate -->
|
|
<define name="USE_$(MAG_PITOT_PORT_UPPER)"/>
|
|
<define name="USE_$(MAG_PITOT_PORT_UPPER)_TX" value="FALSE"/>
|
|
<define name="$(MAG_PITOT_PORT_UPPER)_BAUD" value="$(MAG_PITOT_BAUD)"/>
|
|
<define name="MAG_PITOT_PORT" value="$(MAG_PITOT_PORT_LOWER)"/>
|
|
|
|
<!-- Sources and PPRZLink for transport -->
|
|
<file name="mag_pitot_uart.c"/>
|
|
<file name="pprz_transport.c" dir="pprzlink/src"/>
|
|
<test>
|
|
<define name="MAG_PITOT_PORT" value="uart0"/>
|
|
<define name="USE_UART0"/>
|
|
</test>
|
|
</makefile>
|
|
</module>
|
|
|