Paparazzi UAS  v5.15_devel-88-gb3ad7fe
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
digital_cam_shoot_rc module

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.

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="digital_cam|digital_cam_servo|digital_cam_uart|digital_cam_i2c|digital_cam_video"/>
2 <module name="digital_cam_shoot_rc">
3  <define name="DC_RADIO_SHOOT" value="RADIO_xxx" />
4 </module>

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

Dependencies

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>