paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] Can not use AUTOSHOOT function.


From: Christophe De Wagter
Subject: Re: [Paparazzi-devel] Can not use AUTOSHOOT function.
Date: Sat, 4 Aug 2012 12:35:07 +0200

where did you find an example with

#define LINE_START_FUNCTION dc_autoshoot = DC_AUTOSHOOT_QUARTERSEC_PERIOD;

this is not good. the dc_autoshoot is the mode and should be 

one of the following:

  DC_AUTOSHOOT_STOP = 0,
  DC_AUTOSHOOT_PERIODIC = 1,
  DC_AUTOSHOOT_DISTANCE = 2,
  DC_AUTOSHOOT_EXT_TRIG = 3,
  DC_AUTOSHOOT_SURVEY = 4,
  DC_AUTOSHOOT_CIRCLE = 5

e.g.:

#define LINE_START_FUNCTION dc_autoshoot = DC_AUTOSHOOT_PERIODIC



-Christophe 



On Sat, Aug 4, 2012 at 11:36 AM, Marvin Wang <address@hidden> wrote:
 dear all,

i am using branch 4.0  and now. i  can not use the autoshoot function
in the flight plan.

i have follow the mail instruction, added this in my flight plan.

<header>
#include "generated/airframe.h"
#ifdef DC_AUTOSHOOT_QUARTERSEC_PERIOD
#include "modules/digital_cam/dc.h"
#define LINE_START_FUNCTION dc_autoshoot = DC_AUTOSHOOT_QUARTERSEC_PERIOD;
//#define LINE_START_FUNCTION dc_Survey(dc_gps_dist);
#define LINE_STOP_FUNCTION dc_autoshoot = DC_AUTOSHOOT_STOP;
#endif
 </header>

and also use the digital_cam module.

<load name="digital_cam.xml">
    <define name="DC_SHUTTER_LED" value="6"/>
    <define name="LED_6_BANK" value="1"/>
    <define name="LED_6_PIN" value="18"/>
    <define name="PUSH" value="LED_ON" />
    <define name="RELEASE" value="LED_OFF" />
    <define name="DC_SHUTTER_DELAY" value="1" unit="quarter_second"/>
    <define name="AUTOSHOOT_QUARTERSEC_PERIOD" value="8" unit="quarter_second"/>
    <define name="AUTOSHOOT_METER_GRID" value="50" unit="meter"/>
 </load>


but when an survey mission is triggered  in the simulator,  it can not
go into the autoshoot mode(no yellow dot) .  did i missed something?

_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel


reply via email to

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