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: Sat, 13 Oct 2012 15:33:06 +0200

Dear Jorn,

The camera triggering did not set the LED to RELEASE on start. That was added in

https://github.com/paparazzi/paparazzi/commit/b693812f7e5e5c442a8c2e581046777823933b6e

git cherry-pick b6938127   (after a git remote update to download all latest code)

Now by defining DC_PUSH and DC_RELEASE to LED_OFF (=pin 3.3V !!!) or LED_ON (pin=0V) you should be able to get any config you like, and on initialization the RELEASED mode will be selected.

<define name="DC_RELEASE" value="LED_ON" />  <!-- zero volt on startup -->
<define name="DC_PUSH" value="LED_OFF" />  <!-- 3.3 volt to trigger -->

Does this help?

-Christophe 



On Thu, Oct 11, 2012 at 9:34 PM, Jorn Anke <address@hidden> wrote:
In order to switch off the power from the pin defined for the camera trigger; is it possible to send a "RELEASE" command manually to the autopilot?

Ref:  <define name="RELEASE" value="LED_OFF" />

Or better, set "LED_OFF" as default value for in one of the configuration files?

Thanks,

Jorn


From: address@hidden
To: address@hidden
Subject: RE: Configuration of a distance based autoshoot function with Yapa2
Date: Tue, 9 Oct 2012 00:48:59 +0200


Hi,

I have one more problem with getting the camera trigger to behave as desired.

Basically the shutter script works, but the default state of the trigger is "on", from the board is powered. Meaning the pin is outputting +3.3V and resulting the camera to shoot at the fastest possible rate.

When the time-based trigger (Autoshoot) is started the shooting rate slows down to whatever rate is programmed. 

So the question is; how can I change the default state of the trigger to off?

Cheers,

Jorn


The relevant part of the airframe file now looks like this:

  <section name="DIGITAL_CAMERA" prefix="DC_">
    <define name="AUTOSHOOT_QUARTERSEC_PERIOD" value="16" unit="quarter_second"/>
    <!-- <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="dc.xml"/> -->
    <load name="digital_cam.xml">
      <define name="DC_SHUTTER_LED" value="7"/>
      <define name="LED_7_BANK" value="0"/>
      <define name="LED_7_PIN" value="21"/>
      <define name="USE_LED_7" value="1"/>
      <define name="PUSH" value="LED_ON" />
      <define name="RELEASE" value="LED_OFF" />
      <define name="DC_SHUTTER_DELAY" value="8" unit="quarter_second"/>
    </load>
  </modules>


From: address@hidden
To: address@hidden
Subject: RE: Configuration of a distance based autoshoot function with Yapa2
Date: Fri, 21 Sep 2012 21:55:18 +0200

A HUGE Thanks to all who have contributed and helped with this issue!

Finally everything is working! The last missing piece turned out be the: <define name="USE_LED_7" value="1"/>  line.

Now I am looking forward to put everything together and start flight-testing.


Cheers!

Jorn

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