[Tinyos-help] NOISE_BIN_SIZE in sim_noise.h

Philip Levis pal at cs.stanford.edu
Sun Aug 5 15:27:36 PDT 2007


On Aug 4, 2007, at 4:26 PM, Tal Rusak wrote:

> Hi,
>      In the sim_noise.h file of Tossim
> (/tinyos-2.x/tos/lib/tossim/sim_noise.h), the NOISE_BIN_SIZE is
> defined as follows:
>
> NOISE_BIN_SIZE = (NOISE_MAX - NOISE_MIN)/NOISE_QUANTIZE_INTERVAL
>
>      This appears to capture the number of bins, not their size.  
> Size is
> stored in NOISE_QUANTIZE_INTERVAL. Can anyone confirm?

That's correct.

There's also a potential bug, in the numerator is not evenly  
divisible by the denominator. I'll fix it in CVS.

Phil


More information about the Tinyos-help mailing list