• 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
..
Makefile Loading commit data...
arith.c Loading commit data...
bmc.c Loading commit data...
common-fun.c Loading commit data...
common-fun.h Loading commit data...
fsm-table.c Loading commit data...
hooks.c Loading commit data...
msg.c Loading commit data...
open-close.c Loading commit data...
servo.c Loading commit data...
state-disabled.c Loading commit data...
state-faulty.c Loading commit data...
state-initializing.c Loading commit data...
state-listening.c Loading commit data...
state-master.c Loading commit data...
state-passive.c Loading commit data...
state-pre-master.c Loading commit data...
state-slave.c Loading commit data...
state-uncalibrated.c Loading commit data...
timeout.c Loading commit data...