# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+import time
+
from savemysugar.cumulative_average import cumulative_average
from savemysugar.Modem import Modem
-import time
class Rings(object):
Rings.count - 1, distance)
print()
print("Other ring")
- print("distance: %f" % distance)
- print("min_distance: %f" % Rings.min_distance)
- print("max_distance: %f" % Rings.max_distance)
- print("average_distance: %f" % Rings.average_distance)
- uncertainty = (Rings.max_distance - Rings.min_distance) / 2.
- print("uncertainty: %f" % uncertainty)
+ print("Ring distance: %f" % distance)
+ print("Min ring distance: %f" % Rings.min_distance)
+ print("Max ring distance %f" % Rings.max_distance)
+ print("Average distance: %f" % Rings.average_distance)
def measure_ring_distance(ingoing_port, outgoing_port, destination_number):