Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Trigger Digital Camera (I2C)

Module XML file: digital_cam_i2c.xml

Using I2C connected remote microcontroller

Module configuration options

Define Options

  • name: DC_SHOOT_ON_BUTTON_RELEASE value: None
  • name: SENSOR_SYNC_SEND value: 1

Module functions

Init Functions

These initialization functions are called once on startup.

Event Functions

These event functions are called in each cycle of the module event loop.

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_i2c.xml file:

<!DOCTYPE module SYSTEM "module.dtd">
<module name="atmega_i2c_cam_ctrl" dir="digital_cam">
<doc>
<description>
Trigger Digital Camera (I2C).
Using I2C connected remote microcontroller
</description>
<define name="DC_SHOOT_ON_BUTTON_RELEASE" />
<define name="SENSOR_SYNC_SEND" value="1" />
</doc>
<header>
<file name="atmega_i2c_cam_ctrl.h"/>
</header>
<init fun="atmega_i2c_cam_ctrl_init()"/>
<periodic fun="atmega_i2c_cam_ctrl_periodic()" autorun="TRUE" freq="4" />
<event fun="atmega_i2c_cam_ctrl_event()"/>
<datalink message="PAYLOAD_COMMAND" fun="ParseCameraCommand()" />
<makefile target="ap">
<file name="atmega_i2c_cam_ctrl.c"/>
<file name="dc.c"/>
<define name="ATMEGA_I2C_DEV" value="i2c0"/>
<define name="USE_I2C0" value="1"/>
<define name="SENSOR_SYNC_SEND" value="1" />
</makefile>
<makefile target="sim">
<file name="sim_i2c_cam_ctrl.c"/>
<file name="dc.c"/>
<define name="SENSOR_SYNC_SEND" value="1" />
</makefile>
</module>