Format and send via UART tracking data according to French regulation.
No detailed description...
Example for airframe file
Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!
<module name="e_identification_fr">
b'<configure name="E_ID_PORT" value="UARTx" />\n '
b'<configure name="E_ID_BAUD" value="B115200" />\n '
</module>
Module configuration options
Configure Options
- name:
E_ID_PORT
value: UARTx
Description: UART where the e-id device is connected to (UART1, UART2, etc
- name:
E_ID_BAUD
value: B115200
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.
Files
Header Files
The following headers are automatically included in modules.h
Source Files
Raw e_identification_fr.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="e_identification_fr">
<doc>
<description>Format and send via UART tracking data according to French regulation.</description>
<configure name="E_ID_PORT" value="UARTx" description="UART where the e-id device is connected to (UART1, UART2, etc"/>
<configure name="E_ID_BAUD" value="B115200" description="UART baud rate"/>
</doc>
<settings>
<dl_settings>
<dl_settings name="eID">
<dl_setting shortname="e_id_running" var="e_identification_started" min="0" step="1" max="1" values="STOPPED|RUNNING"/>
</dl_settings>
</dl_settings>
</settings>
<header>
<file name="e_identification_fr.h"/>
</header>
<init fun="e_identification_fr_init()"/>
<periodic fun="e_identification_fr_periodic()" freq="4" autorun="TRUE"/>
<makefile target="ap">
<configure name="E_ID_PORT" case="upper|lower"/>
<configure name="E_ID_BAUD" default="B115200"/>
<define name="USE_$(E_ID_PORT_UPPER)"/>
<define name="E_ID_DEV" value="$(E_ID_PORT_LOWER)"/>
<define name="$(E_ID_PORT_UPPER)_BAUD" value="$(E_ID_BAUD)"/>
<define name="USE_$(E_ID_PORT_UPPER)_RX" value="FALSE"/>
<file name="e_identification_fr.c"/>
</makefile>
</module>