fix opions bug

This commit is contained in:
Ruben van de Ven 2021-10-17 10:35:50 +02:00
parent 072db30611
commit d4372083c5

View file

@ -43,8 +43,6 @@ class Plotter:
def connect(self): def connect(self):
# back to default control mode:
self.ad.options.mode = "plot"
# connect/disconnect once because often first connection attempt fails # connect/disconnect once because often first connection attempt fails
self.ad.interactive() self.ad.interactive()
self.ad.connect() self.ad.connect()
@ -64,6 +62,8 @@ class Plotter:
time.sleep(1) time.sleep(1)
connected = self.ad.connect() connected = self.ad.connect()
# back to default control mode:
self.ad.options.mode = "plot"
# self.ad.options.units = 1 # set to use centimeters instead of inches # self.ad.options.units = 1 # set to use centimeters instead of inches
self.ad.options.accel = 100; self.ad.options.accel = 100;
self.ad.options.speed_penup = 100 self.ad.options.speed_penup = 100