[Tinyos-devel] 4bitle LinkEstimatorP.nc
Andreas Köpke
koepke at tkn.tu-berlin.de
Mon Dec 1 03:45:16 PST 2008
Hi, I'm wondering about the exponential weighted average implementation in the
4bitle:
void updateEETX(neighbor_table_entry_t *ne, uint16_t newEst) {
ne->eetx = (ALPHA * ne->eetx + (10 - ALPHA) * newEst)/10;
}
here, the influence of newEst is limited to newEst/10 -- underestimating the
etx.
I think it should round to nearest:
void updateEETX(neighbor_table_entry_t *ne, uint16_t newEst) {
ne->eetx = (ALPHA * ne->eetx + (10 - ALPHA) * newEst + 5)/10;
}
Best, Andreas
More information about the Tinyos-devel
mailing list