PaulStoffregen / PulsePosition

Multiple High-Res Input & Output PPM Encoded Signal Streams on Teensy 4.x, 3.x & LC
47 stars 23 forks source link

Incompatible with FreqMeasureMulti, use different FTM #4

Open slomobile opened 8 years ago

slomobile commented 8 years ago

PulsePosition is incompatible with FreqMeasureMulti because they both use FTM0.
It would be nice to use FreqMeasureMulti to capture several individual pulsewidths, and output a multiplexed stream of them with PulsePosition. FreqMeasureMulti is the more widely useful library, and it would be rare for a project to require more than one PPM input and one PPM output. Therefore, it makes sense for PulsePosition to use one of the other FTM modules with only 2 channels by default.

I've started working on that by copy/pasting all the FTM0 register configurations, changing 0 to 1,2,3 and surrounding with #ifdef. Then it occurred to me that you may have a broader universal plan for passing FTM arguments to your libraries. If not, it warrants some thought. If requested, I will post post what I have so far.

slomobileAdmin commented 5 years ago

Several years later, I never did get it to work. But now I have the same issue in a different project https://forum.pjrc.com/threads/57249-One-shot-timer?p=212780#post212780