fixed AP Gain calculation

sorry, I messed it up a bit while rewriting it to constants
issue #166
Merge pull request #168 from sorgo/patch-1

fixed AP Gain calculation for deploying resonators