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: Christophe De Wagter
Subject: Re: [Paparazzi-devel] Configuration of a distance based autoshoot function with Yapa2
Date: Mon, 29 Oct 2012 10:01:14 +0100

Hi,

The way the code is setup now, dc_Survey(DISTANCE) stores the requested DISTANCE in dc_gps_dist, so if you give it as an argument it overwrites itself. And AUTOSHOOT_METER_GRID is not used to initialize gps_dist but is only for the older north-south grid functions (yet).

We used this with success:

#define LINE_START_FUNCTION dc_Survey(50);
#define LINE_STOP_FUNCTION dc_autoshoot = DC_AUTOSHOOT_STOP;

This does mean you can not tweak the distance inflight, so an upgrade would be nice.

-Christophe 



On Thu, Oct 25, 2012 at 12:24 AM, Jorn Anke <address@hidden> wrote:
Hi,

By now, I have a working solution for a time-based camera trigger for my autopilot (Yapa). Now, I am trying to find a similar configuration for a distance-based trigger. I have been searching the wiki and tested all the solutions that I have found, (and then some), but with little luck. Most frequently, (simulation mode), the trigger is fired very rapidly, (maybe 3 times p. second). So, I think I have not yet found the correct settings for the airframe-file or maybe for the flight-plane file.

Anyone who can see what I might have done wrong?


Cheers,

Jorn
_______________________________________________________

>From the airframe-file:


 <section name="DIGITAL_CAMERA" prefix="DC_">
    <define name="AUTOSHOOT_QUARTERSEC_PERIOD" value="4" unit="quarter_second"/>
    <define name="AUTOSHOOT_METER_GRID" value="40" unit="meter"/>  /// (Also tried to remove this line)
  </section>

From the flight plane:


<header>
#include "subsystems/navigation/nav_line.h"
#include "subsystems/datalink/datalink.h"
#include "generated/airframe.h"
#include "modules/digital_cam/dc.h"
#define LINE_START_FUNCTION dc_autoshoot = DC_AUTOSHOOT_DISTANCE;

//#define LINE_START_FUNCTION dc_Survey(dc_gps_dist);
#define LINE_STOP_FUNCTION dc_autoshoot = DC_AUTOSHOOT_STOP;
</header>



_______________________________________________
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]