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!
<module name="digital_cam_shoot_rc">
b'<define name="DC_RADIO_SHOOT" value="RADIO_xxx" />\n '
</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
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>
<dep>
<depends>digital_cam|digital_cam_gpio|digital_cam_servo|digital_cam_uart|digital_cam_i2c|digital_cam_video|digital_cam_pprzlink</depends>
</dep>
<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>