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

Radio control common

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

Module configuration options

Configure Options

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

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.

  • radio_control_periodic_task()
    • 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 radio_control_common.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="radio_control_common" dir="radio_control" task="radio_control">
<doc>
<description>
Radio control common
</description>
<configure name="RADIO_CONTROL_LED" value="none|num" description="LED number or 'none' to disable"/>
</doc>
<header>
<file name="radio_control.h"/>
</header>
<init fun="radio_control_init()"/>
<periodic fun="radio_control_periodic_task()"/>
<makefile>
<configure name="RADIO_CONTROL_LED" default="none"/>
<define name="RADIO_CONTROL_LED" value="$(RADIO_CONTROL_LED)" cond="ifneq ($(RADIO_CONTROL_LED),none)"/>
<define name="RADIO_CONTROL"/>
<file name="radio_control.c"/>
<test>
<define name="RADIO_CONTROL"/>
</test>
</makefile>
</module>