mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-12-27 03:17:06 -07:00
use calibration
This commit is contained in:
parent
f2fd61181a
commit
acc54cbf2b
|
@ -33,7 +33,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
input("White calibration, press ENTER to continue...")
|
input("White calibration, press ENTER to continue...")
|
||||||
white_cal = [get_reflectivity(c) for c in range(8)]
|
white_cal = [get_reflectivity(c) for c in range(8)]
|
||||||
|
|
||||||
input("Black calibration, press ENTER to continue...")
|
input("Black calibration, press ENTER to continue...")
|
||||||
black_cal = [get_reflectivity(c) for c in range(8)]
|
black_cal = [get_reflectivity(c) for c in range(8)]
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
for ii in range(8):
|
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()
|
print()
|
||||||
|
|
||||||
# servos = ServoKit(channels=16).continuous_servo
|
# servos = ServoKit(channels=16).continuous_servo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user