Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
telemetry_intermcu module

Telemetry over InterMCU

This module transmits Telemetry 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!

1 <module name="telemetry_intermcu">
2  <configure name="TELEMETRY_INTERMCU_DEV" value="UART3" />
3  <configure name="TELEMETRY_INTERMCU_BAUD" value="B19200" />
4 </module>

Module configuration options

Configure Options

  • name: TELEMETRY_INTERMCU_DEV value: UART3
    Description: Device used to communicate the telemetry over on the FBW side
  • name: TELEMETRY_INTERMCU_BAUD value: B19200
    Description: UART baud rate

Module functions

Init Functions

These initialization functions are called once on startup.

Periodic Functions

These functions are called periodically at the specified frequency from the module periodic loop.

  • telemetry_intermcu_periodic()
    • Running at maximum module frequency.
    • Autorun: LOCK
      Periodic function automatically starts after init and can't be stopped.

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="telemetry">
<doc>
<description>Telemetry over InterMCU
This module transmits Telemetry 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="UART3" description="Device used to communicate the telemetry over on the FBW side"/>
<configure name="TELEMETRY_INTERMCU_BAUD" value="B19200" description="UART baud rate"/>
</doc>
<!-- <depends>intermcu</depends> -->
<header>
<file name="telemetry_intermcu.h"/>
</header>
<init fun="telemetry_intermcu_init()"/>
<periodic fun="telemetry_intermcu_periodic()"/>
<makefile target="ap">
<file name="telemetry_intermcu_ap.c"/>
<file name="short_transport.c" dir="pprzlink/src"/>
</makefile>
<makefile target="fbw">
<file name="telemetry_intermcu_fbw.c"/>
<file name="pprz_transport.c" dir="pprzlink/src"/>
<configure name="TELEMETRY_INTERMCU_DEV" default="UART3" case="upper|lower"/>
<configure name="TELEMETRY_INTERMCU_BAUD" default="B19200"/>
<define name="USE_$(TELEMETRY_INTERMCU_DEV_UPPER)"/>
<define name="$(TELEMETRY_INTERMCU_DEV_UPPER)_BAUD" value="$(TELEMETRY_INTERMCU_BAUD)"/>
<define name="TELEMETRY_INTERMCU_DEV" value="$(TELEMETRY_INTERMCU_DEV_LOWER)"/>
</makefile>
</module>