Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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!

1 <module name="radio_control_datalink">
2  <configure name="RADIO_CONTROL_LED" value="none|num" />
3  <configure name="RADIO_CONTROL_DATALINK_LED" value="none|num" />
4 </module>

Module configuration options

Configure Options

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

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">
<doc>
<description>
Radio control over datalink
</description>
<configure name="RADIO_CONTROL_LED" value="none|num" description="LED number or 'none' to disable"/>
<configure name="RADIO_CONTROL_DATALINK_LED" value="none|num" description="LED number or 'none' to disable"/>
</doc>
<header>
<file name="rc_datalink.h" dir="subsystems/radio_control"/>
</header>
<makefile target="ap|fbw|sim|nps">
<configure name="RADIO_CONTROL_LED" default="none"/>
<configure name="RADIO_CONTROL_DATALINK_LED" default="none"/>
<define name="RADIO_CONTROL_LED" value="$(RADIO_CONTROL_LED)" cond="ifneq ($(RADIO_CONTROL_LED),none)"/>
<define name="RADIO_CONTROL_DATALINK_LED" value="$(RADIO_CONTROL_DATALINK_LED)" cond="ifneq ($(RADIO_CONTROL_DATALINK_LED),none)"/>
<define name="RADIO_CONTROL_TYPE_H" value="subsystems/radio_control/rc_datalink.h" type="string"/>
</makefile>
<makefile target="fbw|sim|nps">
<define name="RADIO_CONTROL"/>
<define name="RADIO_CONTROL_TYPE_DATALINK"/>
<file name="radio_control.c" dir="subsystems"/>
<file name="rc_datalink.c" dir="subsystems/radio_control"/>
</makefile>
<makefile target="ap" cond="ifeq (,$(findstring $(SEPARATE_FBW),1 TRUE))">
<define name="RADIO_CONTROL"/>
<define name="RADIO_CONTROL_TYPE_DATALINK"/>
<file name="radio_control.c" dir="subsystems"/>
<file name="rc_datalink.c" dir="subsystems/radio_control"/>
</makefile>
</module>