TX Power from 1m base to 0m

@roywant @g-ortuno 
Yes - you correctly list the new formula.  --Roy

On Thu, Dec 11, 2014 at 10:35 AM, Hoà V. DINH <notifications@github.com>
wrote:

> In
> android-uribeacon/uribeacon-library/src/main/java/org/uribeacon/scan/util/RangingUtils.java
> <https://github.com/google/uribeacon/pull/101#discussion-diff-21697045>:
>
> >     * @return the distance at which that rssi value would occur in meters
> >     */
> > -  public static double distanceFromRssi(int rssi, int calibratedTxPower) {
> > -    int txPowerAtSource = calibratedTxPower + PATH_LOSS_AT_1M;
> > +  public static double distanceFromRssi(int rssi, int txPowerAtSource) {
> >      int pathLoss = txPowerAtSource - rssi;
> >      // Distance calculation
> >      return Math.pow(10, (pathLoss - PATH_LOSS_AT_1M) / 20.0);
>
> Does it need to be changed? to Math.pow(10, pathLoss / 20.0);?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/google/uribeacon/pull/101/files#r21697045>.
>



-- 
__________________________
*Roy Want*
*Google Research*
MTV-1225-2R1D
Cell: 650 691 3600
www.roywant.com/cs