Telemetry bridge over InterMCU for FBW
This module transmits datalink of the process "InterMCU" from AP to FBW. The FBW then transmits this telemetry further through PPRZ over an UART.
Example for airframe file
Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!
<module name="telemetry_intermcu">
b'<configure name="TELEMETRY_INTERMCU_DEV" value="$(DOWNLINK_DEVICE)" />\n '
</module>
Module configuration options
Configure Options
- name:
TELEMETRY_INTERMCU_DEV
value:
Description: Device used to communicate the telemetry over on the FBW side
Module functions
Init Functions
These initialization functions are called once on startup.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw telemetry_intermcu.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="telemetry_intermcu" dir="datalink" task="datalink">
<doc>
<description>
Telemetry bridge over InterMCU for FBW
This module transmits datalink of the process "InterMCU" from AP to FBW. The FBW then transmits this telemetry further through PPRZ over an UART.
</description>
<configure name="TELEMETRY_INTERMCU_DEV" value="$(DOWNLINK_DEVICE)" description="Device used to communicate the telemetry over on the FBW side"/>
</doc>
<dep>
<depends>uart,@intermcu</depends>
<provides>datalink,telemetry</provides>
</dep>
<header>
<file name="intermcu_dl.h"/>
</header>
<init fun="intermcu_dl_init()"/>
<makefile target="ap|fbw">
<configure name="TELEMETRY_INTERMCU_DEV" default="$(MODEM_PORT)" case="upper|lower"/>
<define name="TELEMETRY_INTERMCU"/>
<define name="TELEMETRY_INTERMCU_DEV" value="$(TELEMETRY_INTERMCU_DEV_LOWER)" cond="ifneq ($(TELEMETRY_INTERMCU_DEV),)"/>
<file name="intermcu_dl.c"/>
<test/>
</makefile>
</module>