/Designs/Laboratory_instruments/CLOCKMOT01A/SW/CLOCKMOT.py/CLOCKMOT.py |
---|
191,8 → 191,6 |
if key == ['start']: |
running = True |
X.Reset() |
X.Initialize() |
requested_speed = SPEED |
if key == ['faster']: |
212,6 → 210,8 |
real_speed = X.Run(1, requested_speed) |
print "Motor running at: %f steps/s" % real_speed |
else: |
X.Reset() |
X.Initialize() |
X.Float(hard=False) # release power |
print "Stopping the motor." |