Hi again,
I want to configure one of the servo-pins on the Yapa to trigger a Canon
camera using chdk. From the wiki, I think the S2 is supposed to be used
for this. The LED 1 is also unused, so I want to use that as an
indicator of the trigger event.
From what I have found in other threads, I think what I have to
configure in the airframe file is something like this:
<section name="DIGITAL_CAMERA" prefix="DC_">
<define name="AUTOSHOOT_QUARTERSEC_PERIOD" value="8"
unit="quarter_second"/>
*=> Meaning "distance" between each shot is 2 seconds ?*
<define name="AUTOSHOOT_METER_GRID" value="40" unit="meter"/>
</section>
<modules>
<load name="ins_chimu_spi.xml" >
<!-- <define name="CHIMU_BIG_ENDIAN" /> -->
</load>
<load name="digital_cam.xml">
<define name="DC_SHUTTER_LED" value="1"/>
*=> LED 1 will be used as indicator ?*
<define name="LED_1_PIN" value="2"/>
* => Defining physical pin S2 as camera pin ?*
<define name="PUSH" value="LED_ON" />
<define name="RELEASE" value="LED_OFF" />
<define name="DC_SHUTTER_DELAY" value="2" unit="quarter_second"/>
*=> Trigger will be active for 0,5 seconds ?*
</load>
</modules>
And I the flight plan, maybe this: (?)
<header>
#include "subsystems/navigation/nav_line.h"
#include "subsystems/datalink/datalink.h"
#include "generated/airframe.h"
#ifdef DC_AUTOSHOOT_QUARTERSEC_PERIOD
#include "modules/digital_cam/dc.h"
#define LINE_START_FUNCTION dc_autoshoot = DC_AUTOSHOOT_PERIODIC;
//#define LINE_START_FUNCTION dc_Survey(dc_gps_dist);
#define LINE_STOP_FUNCTION dc_autoshoot = DC_AUTOSHOOT_STOP;
#endif
</header>
Cheers,
Jorn
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel