Hi everyone,
Sometimes the linear regression result computed by FTSP is quite different
from that computed offline. For instance, for the following reference point
table,
localtime offset
5021124 162575
5082335 162671
5078357 162681
5057159 162757
5054204 162756
5047944 162757
5030543 162758
5025524 162758
1) FTSP gives:
offset = 40 * 10^(-6) * localtime + 162713
offset at localtime 5025524 is 162710
2) Offline gives:
offset = 40.4 * 10^(-6) * localtime + 162510
offset at localtime 5025524 is 162920
It yields difference of 162920 - 162710 = 210 ticks (1 tick is about 1/32
ms), which is, unfortunately, too large for my purpose. Can anyone please
advise if there is anything wrong in the linear regression computation of
FTSP, or this is what can be achieved with integer arithmetic? Some threads
have reported related issues (see
here<http://mail.millennium.berkeley.edu/pipermail/tinyos-devel/2010-November/004731.html>and
here<http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2012-September/055616.html>),
but I'm unsure whether the latest TinyOS distribution has fixed them. Your
help will be sincerely appreciated.
Best regards,
-Xiaohui Liu
TinyOS 2.1.2
TelosB
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help