<!DOCTYPE module SYSTEM "./module.dtd">

<!--

// Use (parts of) the following section in airframe file to change

# ap.CFLAGS += -DGPS_TRIGGERED_FUNCTION="dc_shoot_on_gps"
# ap.CFLAGS += -DDC_GPS_TRIGGER_START=1
# ap.CFLAGS += -DDC_GPS_TRIGGER_STOP=3

-->

<module name="digital_cam">
  <doc>
    <description>Digital camera control (trigger using led)</description>
    <define name="DC_SHOOT_ON_BUTTON_RELEASE" />
    <define name="SENSOR_SYNC_SEND" value="1" />

    <define name="DC_PUSH" value="LED_ON" />
    <define name="DC_RELEASE" value="LED_OFF" />

    <define name="DC_AUTOSHOOT_QUARTERSEC_PERIOD" value="6" description="quarter_second"/>
    <define name="DC_AUTOSHOOT_METER_GRID" value="50" description="grid in meters"/>
  </doc>

  <header>
    <file name="led_cam_ctrl.h"/>
  </header>

  <init fun="led_cam_ctrl_init()"/>

  <periodic fun="led_cam_ctrl_periodic()" freq="4" autorun="TRUE"/>

  <makefile >

    <define name="DIGITAL_CAM" />
    <file name="led_cam_ctrl.c"/>
    <file name="dc.c"/>
    <define name="SENSOR_SYNC_SEND" value="1" />

  </makefile>


</module>
