[Tinyos-2-commits] CVS: tinyos-2.x/tos/lib/net/4bitle
LinkEstimatorP.nc, 1.4, 1.5
Omprakash Gnawali
gnawali at users.sourceforge.net
Thu Dec 20 20:36:44 PST 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/net/4bitle
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv10857
Modified Files:
LinkEstimatorP.nc
Log Message:
alpha=9; bug fix for getlinkquality - return infinity if not a mature link
Index: LinkEstimatorP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/net/4bitle/LinkEstimatorP.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** LinkEstimatorP.nc 16 Nov 2007 23:14:49 -0000 1.4
--- LinkEstimatorP.nc 21 Dec 2007 04:36:42 -0000 1.5
***************
*** 71,75 ****
// decay the link estimate using this alpha
// we use a denominator of 10, so this corresponds to 0.2
! ALPHA = 2,
// number of packets to wait before computing a new
// DLQ (Data-driven Link Quality)
--- 71,75 ----
// decay the link estimate using this alpha
// we use a denominator of 10, so this corresponds to 0.2
! ALPHA = 9,
// number of packets to wait before computing a new
// DLQ (Data-driven Link Quality)
***************
*** 444,449 ****
return INFINITY;
} else {
! return NeighborTable[idx].eetx;
! };
}
--- 444,453 ----
return INFINITY;
} else {
! if (NeighborTable[idx].flags & MATURE_ENTRY) {
! return NeighborTable[idx].eetx;
! } else {
! return INFINITY;
! }
! }
}
More information about the Tinyos-2-commits
mailing list