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

Digi Xtend RSSI PWM Module.

You must also load the module pwm_meas.xml

Example for airframe file

Add to your firmware section: This example contains all possible configuration options, not all of them are mandatory!

<module name="xtend_rssi">
b'<configure name="XTEND_RSSI_PWM_INPUT_CHANNEL" value="input" />\n '
</module>

Module configuration options

Configure Options

  • name: XTEND_RSSI_PWM_INPUT_CHANNEL value: input
    Description: select on which arch dep input the pwm line is connected

Module functions

Periodic Functions

These functions are called periodically at the specified frequency from the module periodic loop.

  • xtend_rssi_periodic()
    • Frequency in Hz: 0.5
    • 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 xtend_rssi.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="xtend_rssi" dir="datalink">
<doc>
<description>
Digi Xtend RSSI PWM Module.
You must also load the module pwm_meas.xml
</description>
<configure name="XTEND_RSSI_PWM_INPUT_CHANNEL" value="input" description="select on which arch dep input the pwm line is connected"/>
</doc>
<dep>
<depends>pwm_meas</depends>
</dep>
<header>
<file name="xtend_rssi.h"/>
</header>
<periodic fun="xtend_rssi_periodic()" freq="0.5"/>
<makefile target="ap">
<file name="xtend_rssi.c"/>
<define name="XTEND_RSSI_PWM_INPUT_CHANNEL" value="$(XTEND_RSSI_PWM_INPUT_CHANNEL)"/> <!-- configure the pwm input to be used in airframe file -->
<define name="USE_PWM_INPUT$(XTEND_RSSI_PWM_INPUT_CHANNEL)" value="PWM_PULSE_TYPE_ACTIVE_HIGH"/> <!-- rssi signal is active high -->
</makefile>
</module>