mikaelnousiainen / RS41ng

Custom firmware for Vaisala RS41 and Graw DFM-17 radiosondes with support for amateur radio use. Ideal for tracking high-altitude balloons. Supported modes include APRS, Horus 4FSK mode, CATS, morse code (CW) and additional digital modes like WSPR and FT8 via Si5351.
GNU General Public License v2.0
109 stars 28 forks source link

Add leap seconds to GPS time to fix scheduled transmit #34

Closed mikaelnousiainen closed 10 months ago

mikaelnousiainen commented 1 year ago

Scheduled transmissions use GPS time of week, which does not include leap seconds. The offset between GPS time and UTC is currently 18 seconds: https://timetoolsltd.com/gps/what-is-gps-time/

Add configurable leap seconds offset value to the firmware and use it in the scheduling code.

iz2fly commented 1 year ago

I'm testing WSPR digital mode in 144MHz with Si5351 and 10MHz OCXO. This is the best firmware I've found, congratulations. I didn't understand this shift from UTC time. Maybe it's better to put a note next to TIME_SYNC_OFFSET_SECONDS in the config.h file. Thank you

mikaelnousiainen commented 10 months ago

Fixed in https://github.com/mikaelnousiainen/RS41ng/commit/767c1a2f544efd622b01c1ef15064432f74d0f24