mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-12-26 10:57:55 -07:00
add update of brightness plot when controller is disabled
This commit is contained in:
parent
126b48a41e
commit
0790999fd8
|
@ -146,8 +146,13 @@ def update_plots(attrname=None, old=None, new=None):
|
||||||
global brightness
|
global brightness
|
||||||
global time_data
|
global time_data
|
||||||
global brightness_plot_source
|
global brightness_plot_source
|
||||||
brightness_plot_source.data = dict(sensor=brightness_idx, brightness=brightness)
|
global control_thread_run
|
||||||
time_plot_source.data = dict(t=time_data[:,0], e=time_data[:,1], c=time_data[:,2])
|
if control_thread_run:
|
||||||
|
brightness_plot_source.data = dict(sensor=brightness_idx, brightness=brightness)
|
||||||
|
time_plot_source.data = dict(t=time_data[:,0], e=time_data[:,1], c=time_data[:,2])
|
||||||
|
else:
|
||||||
|
brightness = np.clip([get_normalized_reflectivity(c) for c in range(8)], 0, 1)
|
||||||
|
brightness_plot_source.data = dict(sensor=brightness_idx, brightness=brightness)
|
||||||
|
|
||||||
def cal_white(attrname=None, old=None, new=None):
|
def cal_white(attrname=None, old=None, new=None):
|
||||||
global white_cal
|
global white_cal
|
||||||
|
|
Loading…
Reference in New Issue
Block a user