improve lora time sync accuracy
This commit is contained in:
1 parent
177ab88f84
commit
9e1c9c7f59
2 files changed
+7
-7
No files matched your search
+1
-1
@@ -6,7 +6,7 @@
|
||||
#include "timekeeper.h"
|
||||
|
||||
#define TIME_SYNC_FRAME_LENGTH 6 // timeserver answer frame length [bytes]
|
||||
#define TIME_SYNC_FIXUP 16 // compensation for processing time [milliseconds]
|
||||
#define TIME_SYNC_FIXUP 25 // compensation for processing time [milliseconds]
|
||||
#define TIME_SYNC_MAX_SEQNO 0xfe // threshold for wrap around time_sync_seqNo
|
||||
#define TIME_SYNC_END_FLAG (TIME_SYNC_MAX_SEQNO + 1) // end of handshake marker
|
||||
#define GPS_UTC_DIFF 315964800UL // seconds diff between gps and utc epoch
|
||||
|
||||
Reference in new issue
Block a user