otcshare / automotive-message-broker

Other
48 stars 48 forks source link

chronyd sink plugin #52

Closed ghost closed 9 years ago

ghost commented 9 years ago

New sink plugin that sends the GpsTime to Chronyd (a light-weight time daemon, similar to NTPD). Besides the new plugin itself and the required CMakeLists modifications, there are two important modifications in gpsnmea.cpp : correction of the decoding of the month (forgotten minus one) ; and usage of UTC instead of local time to store the GpsTime. There are also some side-modifications in the serialport.cpp : setting the serial port in blocking mode (drops the CPU usage of the GPS NMEA plugin from 60% to 1%) and returning only full lines. You may want to discard those changes.

ghost commented 9 years ago

It is OK for me not to have these patches merged into 0.13 ( because a cleaner version of them has been merged to 0.14. ) Maybe we can close this PR.

tripzero commented 9 years ago

That works. I was also going to cherry pick this into master. Could I get you to dona PR for master too? On Apr 13, 2015 11:51 PM, "Olivier Delbeke" notifications@github.com wrote:

It is OK for me not to have these patches merged into 0.13 ( because a cleaner version of them has been merged to 0.14. ) Maybe we can close this PR.

— Reply to this email directly or view it on GitHub https://github.com/otcshare/automotive-message-broker/pull/52#issuecomment-92655987 .

ghost commented 9 years ago

OK. Done. Closing this one.