/Designs/Laboratory_instruments/CLOCKMOT01A/SW/CLOCKMOT.py |
---|
283,6 → 283,7 |
print "Motor running at: %f steps/s" % real_speed |
else: |
X.Float(hard=False) # release power |
time.sleep(1.0) |
X.Reset() |
X.Initialize() |
print "Stopping the motor." |
/Designs/Laboratory_instruments/CLOCKMOT01A/SW/start.sh |
---|
1,3 → 1,6 |
#!/bin/bash |
cd /home/odroid/repos/CLOCKMOT01A/ |
./CLOCKMOT.py 52.36 & |
if ! pidof -x ./CLOCKMOT.py > /dev/null; then |
./CLOCKMOT.py 52.36 & |
fi |