Skip to main content
. 2019 Jul 9;19(13):3020. doi: 10.3390/s19133020
Algorithm 1 Procedure to handle received message in E-FTSP
  •   1:

    //Receive timing offset

  •   2:

    //Calculate offsetError

  •   3:

    if (offsetError < estimatedDelay) then

  •   4:

     //Compensate for offset only

  •   5:

     compensate_offset(offsetError);

  •   6:

    else

  •   7:

     //Compensate for offset and drift

  •   8:

     compensate_offset(offsetError);

  •   9:

     compensate_drift();

  • 10:

    end if