paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] Configuration of a distance based autoshoot functi


From: Balazs GATI
Subject: Re: [Paparazzi-devel] Configuration of a distance based autoshoot function with Yapa2
Date: Tue, 18 Sep 2012 08:54:14 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20120907 Thunderbird/15.0.1

Seems not bad, but test it:

- compile it for simulation
- test is in simulator (yellow dots on shot positions)
- use the dc.xml settings file
- compile for Yapa, upload
- test the hardware on the ground in periodic mode (you can start it manualy in the GCS)

Balazs

2012.09.17. 23:42 keltezéssel, Jorn Anke írta:
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


--
Balazs GATI, PhD
     Department of Aircraft and Ships
     Budapest University of Technology and Economics

Address:   Budapest
          Stoczek u 6. J. ép. 423
          1111
Tel:       +(36)-1-463-1960
Fax:       +(36)-1-463-3080
Homepage: http://rht.bme.hu/~gatib/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]