mirror of
https://github.com/brendanhaines/ECEN5458_Project.git
synced 2024-11-09 21:14:47 -07:00
fix file load
This commit is contained in:
parent
e4cc932d1a
commit
753d7473b1
|
@ -40,12 +40,12 @@ servos[2].throttle = 0
|
||||||
# Initialize calibration
|
# Initialize calibration
|
||||||
try:
|
try:
|
||||||
white_cal = np.loadtxt('cal_white.txt')
|
white_cal = np.loadtxt('cal_white.txt')
|
||||||
except FileNotFoundError:
|
except IOError:
|
||||||
white_cal = [0]*8
|
white_cal = [0]*8
|
||||||
|
|
||||||
try:
|
try:
|
||||||
black_cal = np.loadtxt('cal_black.txt')
|
black_cal = np.loadtxt('cal_black.txt')
|
||||||
except FileNotFoundError:
|
except IOError:
|
||||||
black_cal = [5]*8
|
black_cal = [5]*8
|
||||||
|
|
||||||
def get_reflectivity(chan):
|
def get_reflectivity(chan):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user