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 Z ← measureAcceleration()
3:  if module(accXY Z) >> 9.8 then
4:   radioPower ← MAXIMUM
5:  else
6:   radioPower ← getOptimumLevel(accXY Z)
7:  end if
8:  status ← sendData(data, radioPower)
9:  whilestatus <> ACK do
10:   radioPower ← getMinimumLooselessLevel(accXY Z)
11:   status ← sendData(data, MAXIMUM)
12:  end while
13: end procedure