mirror of https://github.com/Desuuuu/klipper.git
clocksync: Respond faster to clock changes
Average clock sync times over approximately 30 seconds instead of 120 seconds so that the clock prediction responds to changes faster. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
8121a4a29f
commit
08874b9c91
|
@ -7,7 +7,7 @@ import logging, threading, math
|
|||
|
||||
COMM_TIMEOUT = 3.5
|
||||
RTT_AGE = .000010 / (60. * 60.)
|
||||
DECAY = 1. / (2. * 60.)
|
||||
DECAY = 1. / 30.
|
||||
TRANSMIT_EXTRA = .001
|
||||
|
||||
class ClockSync:
|
||||
|
|
Loading…
Reference in New Issue