From acc54cbf2bd0c221043670f0ab6186cb4688d0fe Mon Sep 17 00:00:00 2001 From: Brendan Haines Date: Mon, 2 Mar 2020 14:09:16 -0700 Subject: [PATCH] use calibration --- Software/python/hwtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Software/python/hwtest.py b/Software/python/hwtest.py index cfa1a7b..0ad28f3 100644 --- a/Software/python/hwtest.py +++ b/Software/python/hwtest.py @@ -33,7 +33,7 @@ if __name__ == "__main__": input("White calibration, press ENTER to continue...") white_cal = [get_reflectivity(c) for c in range(8)] - + input("Black calibration, press ENTER to continue...") black_cal = [get_reflectivity(c) for c in range(8)] @@ -45,7 +45,7 @@ if __name__ == "__main__": while True: for ii in range(8): - print(f"{get_reflectivity(ii):1.2f}\t", end="") + print(f"{get_normalized_reflectivity(ii):1.2f}\t", end="") print() # servos = ServoKit(channels=16).continuous_servo