Zeroing rotary encoder motor steps fix

This commit is contained in:
Douglas Clowes
2014-07-15 18:51:17 +10:00
parent db24e03106
commit acec319ee3
2 changed files with 4 additions and 0 deletions

View File

@@ -236,6 +236,8 @@ class GalilMotor(object):
self.accel = max(1, abs(int(arg)))
elif cmd == "DC":
self.decel = max(1, abs(int(arg)))
elif cmd == "DP":
self.currentSteps = int(arg)
else:
print "Unknown assignment", cmd, arg