Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
radio_control_datalink module

Radio control over datalink

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="radio_control_datalink">
b'<configure name="RADIO_CONTROL_DATALINK_LED" value="none|num" />\n '
</module>

Module configuration options

Configure Options

  • name: RADIO_CONTROL_DATALINK_LED value: none|num
    Description: LED number or 'none' to disable

Module functions

Init Functions

These initialization functions are called once on startup.

Event Functions

These event functions are called in each cycle of the module event loop.

Datalink Functions

Whenever the specified datalink message is received, the corresponing handler function is called.

  • on message RC_3CH call rc_datalink_parse_RC_3CH(buf)
  • on message RC_4CH call rc_datalink_parse_RC_4CH(buf)

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw radio_control_datalink.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="radio_control_datalink" dir="radio_control" task="radio_control">
<doc>
<description>
Radio control over datalink
</description>
<configure name="RADIO_CONTROL_DATALINK_LED" value="none|num" description="LED number or 'none' to disable"/>
</doc>
<dep>
<depends>radio_control_common</depends>
<provides>radio_control</provides>
</dep>
<header>
<file name="rc_datalink.h"/>
</header>
<init fun="rc_datalink_init()"/>
<event fun="rc_datalink_event()"/>
<datalink message="RC_3CH" fun="rc_datalink_parse_RC_3CH(buf)"/>
<datalink message="RC_4CH" fun="rc_datalink_parse_RC_4CH(buf)"/>
<makefile target="ap|fbw|sim|nps">
<configure name="RADIO_CONTROL_DATALINK_LED" default="none"/>
<define name="RADIO_CONTROL_DATALINK_LED" value="$(RADIO_CONTROL_DATALINK_LED)" cond="ifneq ($(RADIO_CONTROL_DATALINK_LED),none)"/>
<define name="RADIO_CONTROL_TYPE_DATALINK"/>
<file name="rc_datalink.c"/>
<test>
<define name="RADIO_CONTROL"/>
<define name="RADIO_CONTROL_TYPE_DATALINK"/>
</test>
</makefile>
</module>