WIP: add debug stuff for cal

This commit is contained in:
Brendan Haines 2020-03-02 16:02:46 -07:00
parent 38a382c45a
commit 549c4609e6

View File

@ -62,11 +62,13 @@ def update_data(attrname=None, old=None, new=None):
def cal_white(attrname=None, old=None, new=None): def cal_white(attrname=None, old=None, new=None):
global white_cal global white_cal
white_cal = [get_reflectivity(c) for c in range(8)] white_cal = [get_reflectivity(c) for c in range(8)]
print(white_cal)
update_data() update_data()
def cal_black(attrname=None, old=None, new=None): def cal_black(attrname=None, old=None, new=None):
global black_cal global black_cal
black_cal = [get_reflectivity(c) for c in range(8)] black_cal = [get_reflectivity(c) for c in range(8)]
print(black_cal)
update_data() update_data()
cal_white_button = Button(label="Cal White") cal_white_button = Button(label="Cal White")