Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Digital camera control using radio channel

Module XML file: digital_cam_shoot_rc.xml

With this module you can take pictures using a radio channel. When you put the channel to max the picture are taken. If the channel goes high for more than 0.75s a picture is taken every 1sec. Only usable for fixedwing firmware.

Example for airframe file

This example contains all possible configuration options, not all of them are mandatory!

1 <modules>
2  <load name="digital_cam_shoot_rc.xml">
3  <define name="DC_RADIO_SHOOT" value="RADIO_xxx" />
4  </load>
5 </modules>

Module configuration options

Define Options

  • name: DC_RADIO_SHOOT value: RADIO_xxx
    Description: specifies the channel to be used to trigger the camera by radio transmiter

Module functions

Periodic Functions

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

Files

Header Files

The following headers are automatically included in modules.h

Source Files

Raw digital_cam_shoot_rc.xml file:

<!DOCTYPE module SYSTEM "./module.dtd">
<module name="digital_cam_shoot_rc" dir="digital_cam">
<doc>
<description>
Digital camera control using radio channel.
With this module you can take pictures using a radio channel.
When you put the channel to max the picture are taken.
If the channel goes high for more than 0.75s a picture is taken every 1sec.
Only usable for fixedwing firmware.
</description>
<define name="DC_RADIO_SHOOT" value="RADIO_xxx" description="specifies the channel to be used to trigger the camera by radio transmiter"/>
</doc>
<depends>digital_cam|digital_cam_servo|digital_cam_uart|digital_cam_i2c|digital_cam_video</depends>
<header>
<file name="dc_shoot_rc.h"/>
</header>
<periodic fun="dc_shoot_rc_periodic()" freq="4" autorun="TRUE"/>
<makefile>
<define name="DIGITAL_CAM_SHOOT_RC"/>
<file name="dc_shoot_rc.c"/>
</makefile>
</module>