paparazzi-devel
[Top][All Lists]
Advanced

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

Re: [Paparazzi-devel] record an input signal as digital_cam module camer


From: Gautier Hattenberger
Subject: Re: [Paparazzi-devel] record an input signal as digital_cam module camera log
Date: Tue, 22 Sep 2015 18:29:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0

it would have been my answer ;)


Le 22/09/2015 18:17, Joseph Muhlhausen a écrit :
Ok, I fixed it by making trigger_ext_position a periodic function at 60hz


Thanks for Gautier you helped me figure it out!

On Tue, Sep 22, 2015 at 10:12 AM, Joseph Muhlhausen <address@hidden> wrote:
trigger_ext_position is not called, that's probably my mistake. I didn't want to call it from inside the interrupt and I assumed the flag trigger_ext_valid == TRUE was going to be enough, and now I realized that windturbine.c for example calls the function periodically.

I need to get the GPS position of when the interrupt happens (a few ms delay is fine). Is there a clever way to have the function called outside of the interrupt?

Joseph

On Tue, Sep 22, 2015 at 3:31 AM, Gautier Hattenberger <address@hidden> wrote:
where (and when) is called the trigger_ext_position function ?

Gautier


Le 22/09/2015 02:03, Joseph Muhlhausen a écrit :
I have not been able to get the trig_test.xml module to work for my purpose.

I tried to write a new module (http://pastebin.com/GbrtCrQD). I'm using trigger_ext_valid = TRUE; to tag the location using the following lines (http://pastebin.com/bsQBmqi0) in dc.c but I can't seem to get any data.

On the hardware side things to be working fine, so I'm guessing I missing something on the software side. Can you guys seee anything wrong with the way I wrote the module?

Thanks,
Joseph




On Wed, Sep 16, 2015 at 8:43 AM, Joseph Muhlhausen <address@hidden> wrote:
Thank you Gautier it makes more sense to me know.

The windturbine example is very useful.

Regarding the trigger itself, I can't tell if the pin is HIGH or LOW by default. I'm thinking about using an optoisolator connected to GND and the pin. When I get a pulse the optoisolator will open the circuit and set the pin LOW.

I'm not planning on adding a resistor between the pin and GND but I want to make sure that's not going to create a over current flow.

Do you guys think this is going to work? 

Thanks,
Joseph



On Sep 15, 2015, at 3:39 PM, Gautier Hattenberger <address@hidden> wrote:

Hi,

trigger_ext is the oldest module and was made to measure the rotation of a wind turbine, so it has some specific stuff, like a dedicated message to report measured RPM.

trig_test.xml was an attempt to make a more generic module that only provides last measurement time and last period. Actually an example using this module is the winturbine module. These two modules where supposed to replace the original trigger_ext module.

If it suits your need, I think it is better to use trig_test. We can probably rename it, the current one is not really nice.

Gautier

Le 15/09/2015 19:56, Joseph Muhlhausen a écrit :
I think I have made some progress, I have been trying to understand the dependencies and the fact that two external trigger modules makes thing a bit confusing.

1. trig_test.xml refers to files in the core subfolder, namely:

trigger_ext.c
trigger_ext.h
trigger_ext_hw.c
trigger_ext_hw.h <- defines the capture channel, and pinsel val and pinsel bit


2. trigger_ext.xml refers to files in the sensors subfolder:

trigger_ext.c
trigger_ext.h
trig_ext_hw.c
trig_ext_hw.h

It looks like I would need to add a define for the capture channel on the board file (umarime_lite_2.h for me) to replace PPM_CR.

Has anybody used either of theses modules?

Thanks,
Joseph


On Mon, Sep 14, 2015 at 11:13 AM, Joseph Muhlhausen <address@hidden> wrote:
Hi All,

I am trying to log the GPS and attitude position from an external signal. I have a umarim lite 2 (but could also use a lisa m2). Is there a way to record a pulse into the digital_cam.xml module?


Thanks,
Joseph




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

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



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


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





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