[Tinyos-help] Circular shift left
behnaz.bostanipour at epfl.ch
behnaz.bostanipour at epfl.ch
Thu Oct 9 12:12:23 PDT 2008
Hi,
I have an array who should keep track of number
of received pings in 4 last minutes,
so for each minute I calculate the number of
received pings and then I put theses numbers
in an array as below:
Table[tableIndex].receivedPings = receivedpings;
tableIndex = (tableIndex + 1)TABLE_SIZE % ;
where TABLE_SIZE=4;
I guess,once the table index is equal 4, I should shift the array
elements to the left circulary but I'm not sure how can I do
this in a proper way.
Any thoughts?
Thanks,
B.
More information about the Tinyos-help
mailing list