@@ -203,7 +203,7 @@ def _run_positional_ramp(self, pos, newpos, speed):
203
203
# Collapse speed range to -5 to 5
204
204
speed *= 0.05
205
205
dur = abs ((newpos - pos ) / speed )
206
- cmd = (f"port { self .port } ; combi 0 { self . _combi } ; select 0 ; selrate { self ._interval } ; "
206
+ cmd = (f"port { self .port } ; select 0 ; selrate { self ._interval } ; "
207
207
f"pid { self .port } 0 1 s4 0.0027777778 0 5 0 .1 3; "
208
208
f"set ramp { pos } { newpos } { dur } 0\r " )
209
209
ftr = Future ()
@@ -259,7 +259,7 @@ def run_to_position(self, degrees, speed=None, blocking=True, direction="shortes
259
259
260
260
def _run_for_seconds (self , seconds , speed ):
261
261
self ._runmode = MotorRunmode .SECONDS
262
- cmd = (f"port { self .port } ; combi 0 { self . _combi } ; select 0 ; selrate { self ._interval } ; "
262
+ cmd = (f"port { self .port } ; select 0 ; selrate { self ._interval } ; "
263
263
f"pid { self .port } 0 0 s1 1 0 0.003 0.01 0 100; "
264
264
f"set pulse { speed } 0.0 { seconds } 0\r " )
265
265
ftr = Future ()
@@ -311,7 +311,7 @@ def start(self, speed=None):
311
311
raise MotorError ("Invalid Speed" )
312
312
cmd = f"port { self .port } ; set { speed } \r "
313
313
if self ._runmode == MotorRunmode .NONE :
314
- cmd = (f"port { self .port } ; combi 0 { self . _combi } ; select 0 ; selrate { self ._interval } ; "
314
+ cmd = (f"port { self .port } ; select 0 ; selrate { self ._interval } ; "
315
315
f"pid { self .port } 0 0 s1 1 0 0.003 0.01 0 100; "
316
316
f"set { speed } \r " )
317
317
self ._runmode = MotorRunmode .FREE
0 commit comments