[Tinyos-help] What means does the adjustLQI function have in MultiHopLQI.nc?

Joe Polastre joe at polastre.com
Wed Sep 14 07:59:31 PDT 2005


This is a weighting function that essentially estimates (1/(lqi^3)). 
This is similar to what Zigbee does when weighting a raw correlation
value to become a useful lqi value.

-Joe

On 9/14/05, Chang-guk Lee <lck2725 at gmail.com> wrote:
> Hi.
> 
> Please could anyone tell me about the adjustLQI function in the surgetelos.
> 
> what dose the adjustLQI function mean?
> 
> tinyos-1.x/contrib/ucb/tos/lib/MultiHopLQI.nc
> 
>   uint16_t adjustLQI(uint8_t val) {
>     uint16_t result = (80 - (val - 50));
>     result = (((result * result) >> 3) * result) >> 3;
>     return result;
>   }
> 
> thanks.
> 
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



More information about the Tinyos-help mailing list