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,
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
|