Skip to main content
. 2013 Jun 10;13(6):7546–7569. doi: 10.3390/s130607546

Algorithm 1 Optimization policy for a characterized radio link.

1: procedure Energy-Aware Send Data Packet(data)
2: accXY ZmeasureAcceleration()
3: if module(accXY Z) >> 9.8 then
4:   radioPowerMAXIMUM
5: else
6:   radioPowergetOptimumLevel(accXY Z)
7: end if
8: statussendData(data, radioPower)
9: whilestatus <> ACK do
10:   radioPowergetMinimumLooselessLevel(accXY Z)
11:   statussendData(data, MAXIMUM)
12: end while
13: end procedure