[Tinyos-2-commits]
CVS: tinyos-2.x/tos/lib/net/le LinkEstimatorP.nc, 1.5, 1.6
Omprakash Gnawali
gnawali at users.sourceforge.net
Mon Apr 9 08:34:36 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/lib/net/le
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv5398
Modified Files:
LinkEstimatorP.nc
Log Message:
allow etx for a bad parent to grow if no pkts were received since the last update
Index: LinkEstimatorP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/lib/net/le/LinkEstimatorP.nc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** LinkEstimatorP.nc 8 Feb 2007 00:23:34 -0000 1.5
--- LinkEstimatorP.nc 9 Apr 2007 15:34:34 -0000 1.6
***************
*** 247,258 ****
if (ne->data_success == 0) {
// if there were no successful packet transmission in the
! // last window, assign a large EETX estimate
! estETX = LARGE_EETX_VALUE;
} else {
estETX = (10 * ne->data_total) / ne->data_success - 10;
}
updateEETX(ne, estETX);
- ne->data_success = 0;
- ne->data_total = 0;
}
--- 247,259 ----
if (ne->data_success == 0) {
// if there were no successful packet transmission in the
! // last window, our current estimate is the number of failed
! // transmissions
! estETX = (ne->data_total - 1)* 10;
} else {
estETX = (10 * ne->data_total) / ne->data_success - 10;
+ ne->data_success = 0;
+ ne->data_total = 0;
}
updateEETX(ne, estETX);
}
More information about the Tinyos-2-commits
mailing list