|
From: | Joseph Muhlhausen |
Subject: | Re: [Paparazzi-devel] record an input signal as digital_cam module camera log |
Date: | Tue, 22 Sep 2015 12:17:54 -0400 |
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?JosephOn 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
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.ctrigger_ext.htrigger_ext_hw.ctrigger_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.ctrigger_ext.htrig_ext_hw.ctrig_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
[Prev in Thread] | Current Thread | [Next in Thread] |