An algorithm to determine range distance with a frequency hopping spread spectrum system