Telemetry using secure PPRZ protocol - common parts
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="telemetry_secure_common">
b'<configure name="MODEM_PORT" value="UARTx" />\n '
b'<configure name="MODEM_BAUD" value="B57600" />\n '
</module>
Module configuration options
Configure Options
- name:
MODEM_PORT
value: UARTx
Description: UART where the modem is connected to (UART1, UART2, etc)
- name:
MODEM_BAUD
value: B57600
Description: UART baud rate
Files
Source Files
- pprzlink/src/pprz_transport.c
Raw telemetry_secure_common.xml file:
<!DOCTYPE module SYSTEM "module.dtd">
<module name="telemetry_secure_common" dir="datalink" task="datalink">
<doc>
<description>
Telemetry using secure PPRZ protocol - common parts
</description>
<configure name="MODEM_PORT" value="UARTx" description="UART where the modem is connected to (UART1, UART2, etc)"/>
<configure name="MODEM_BAUD" value="B57600" description="UART baud rate"/>
</doc>
<dep>
<depends>uart,datalink_common</depends>
<provides>datalink,telemetry</provides>
<suggests>telemetry_nps_secure</suggests>
</dep>
<makefile target="!sim|nps">
<configure name="MODEM_PORT" case="upper|lower"/>
<define name="USE_$(MODEM_PORT_UPPER)"/>
<define name="$(MODEM_PORT_UPPER)_BAUD" value="$(MODEM_BAUD)"/>
<define name="DOWNLINK_DEVICE" value="$(MODEM_PORT_LOWER)"/>
<define name="PPRZ_UART" value="$(MODEM_PORT_LOWER)"/>
</makefile>
<makefile target="!fbw|sim">
<define name="DATALINK" value="PPRZ"/>
<file name="pprz_transport.c" dir="pprzlink/src"/>
</makefile>
</module>