MEASURE XBEE RSSI PWM WIDTH... not working.. any help appreciated

  1. Why use PWM, rather than the ATDB method? - I want more resolution... ATDB command returns range of 256 values only.

Breaking a half-assed guess as to RSSI into 256 values is still going to have huge amounts of discrepancy in the distances you try to discern from those values.

Like printing a float to 12 decimal places, you can not make an inaccurate value more accurate by reading it a different way.