vogelchr / radioclkd2

Quick and dirty fork of http://www.jonatkins.com/page/software/radioclkd2 adding Linux GPIO pin support.
19 stars 7 forks source link

WWVB Fixes #3

Closed gsexton closed 7 years ago

gsexton commented 7 years ago

I've fixed the WWVB code. Because both MSF and WWVB use 0.5s pulses, it was necessary to add a command-line switch that tells the program what kind of data to expect.

data(60): 8,5,2,2,2,2,5,5,2,8,2,2,2,5,2,2,5,2,5,8,2,2,5,2,2,2,2,2,5,8,5,2,2,2,2,2,2,5,2,8,2,2,5,2,2,2,2,2,5,8,2,5,5,2,2,5,2,5,5,8, WWVB : |0 |5 |10 |15 |20 |25 |30 |35 |40 |45 |50 |55 WWVB : .1....11.....1..1.1...1.....1.1......1....1.....1..11..1.11. WWVB time: 2016-218 15:47 leap year clock: radio time 1470412020.023000, average pctime 1470412020.025578, error +-0.001719