Arduino-Libraries icon indicating copy to clipboard operation
Arduino-Libraries copied to clipboard

Filtering short pulses

Open ghost opened this issue 11 years ago • 1 comments

I tried to filter that short pulses before or after a real 100/200 mS pulse. In case of a POST-pulse i added a delay (time defined in DCF77.h as delayPost) and reinitialized the flankTime to millis() for simply ignoring that short pulse. If a short PRE-Pulse is detected, there's a short delay (defined in DCF77.h as delayPre), the flankTime is reinitialized and the sensorvalue is re-readed. Maybe it should be possible to adapt the delayPre/delayPost-value "self-learning" by counting the errors and increasing that values automatically) I changed the rPW and rCT to shorter "+" and "-".

As a second, i added the function getCEST, which returns 1, when CEST is active and 0 if CET is set (as always, this is meant for the next minute)

I added some function names for planned functions: getWeekday(), getEncWeatherData() and getAlertData(). getWeekday() should return the Weekday, getEncWeatherData should return the Encrypted MeteoTime-Weather-Data for external Decryption, getAlertData() should give back the German Civil Alert Data (not encrypted)

In SyncProvider.pde i changed Line 74 "unsigned long getDCFTime()" to "time_t getDCFTime()", because i got compilation errors on Teensy (3.1). Now it compiles both on Arduino Uno and Teensy 3.1

ghost avatar May 20 '14 21:05 ghost

Sorry to respond so late! Thanks for all the updates. I will review and merge them as soon as I can

thijse avatar Apr 19 '15 20:04 thijse