• Alessandro Rubini's avatar
    servo: when setting time, make no calculations · ec537cd1
    Alessandro Rubini authored
    When offset from master is more than one second, the code used to
    time->get, subtract and then time->set.
    
    However, in white rabbit we cannot get the WR time and time->get
    returns the unix time instead. The only way to have hardware time is
    timestamping a frame.  Thus, use the master's "T4" that we just
    received plus the one-way-delay as an approximation of the current
    hardware time. Later T1..T4 tuples will complete the fine
    synchronization.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    ec537cd1
Name
Last commit
Last update
arch-bare-i386 Loading commit data...
arch-bare-x86-64 Loading commit data...
arch-unix Loading commit data...
arch-wrpc Loading commit data...
arch-wrs Loading commit data...
doc Loading commit data...
etc Loading commit data...
include/ppsi Loading commit data...
lib Loading commit data...
lib-bare Loading commit data...
pp_printf Loading commit data...
proto-ext-whiterabbit Loading commit data...
proto-standard Loading commit data...
time-bare Loading commit data...
time-unix Loading commit data...
time-wrpc Loading commit data...
time-wrs Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LIB Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
diag.c Loading commit data...
fsm.c Loading commit data...