measure_call_setup_time.py: don't measure "uncertainty" anymore
authorAntonio Ospite <ao2@ao2.it>
Thu, 24 Dec 2015 09:42:27 +0000 (10:42 +0100)
committerAntonio Ospite <ao2@ao2.it>
Thu, 24 Dec 2015 12:30:46 +0000 (13:30 +0100)
It's not immediately useful to know the uncertainty now that
CallDistanceTransceiver takes minimum and maximum parameters explicitly.

While at it also adjust a print message to be more descriptive.

src/measure_call_setup_time.py

index f69bb15..57bf49a 100755 (executable)
@@ -47,7 +47,7 @@ def measure_call_setup_time(ingoing_port, outgoing_port, destination_number):
 
     for i in range(5):
         print()
 
     for i in range(5):
         print()
-        print("Attempt: %s" % (i + 1))
+        print("Call: %s" % (i + 1))
         outgoing_modem.send_command("ATDT" + destination_number + ";")
         dial_time = time.time()
 
         outgoing_modem.send_command("ATDT" + destination_number + ";")
         dial_time = time.time()
 
@@ -66,12 +66,10 @@ def measure_call_setup_time(ingoing_port, outgoing_port, destination_number):
         avg_call_setup_time = cumulative_average(avg_call_setup_time,
                                                  i + 1,
                                                  call_setup_time)
         avg_call_setup_time = cumulative_average(avg_call_setup_time,
                                                  i + 1,
                                                  call_setup_time)
-        uncertainty = (max_call_setup_time - min_call_setup_time) / 2.
         print("Call setup time: %f" % call_setup_time)
         print("Min call setup time: %f" % min_call_setup_time)
         print("Max call setup time: %f" % max_call_setup_time)
         print("Average call setup time: %f" % avg_call_setup_time)
         print("Call setup time: %f" % call_setup_time)
         print("Min call setup time: %f" % min_call_setup_time)
         print("Max call setup time: %f" % max_call_setup_time)
         print("Average call setup time: %f" % avg_call_setup_time)
-        print("Call setup time uncertainty: %f" % uncertainty)
         print()
 
         call_time = hangup_time - dial_time
         print()
 
         call_time = hangup_time - dial_time