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

Chang-guk Lee lck2725 at gmail.com
Wed Sep 14 01:06:51 PDT 2005


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.



More information about the Tinyos-help mailing list