| Line 197... |
Line 197... |
| 197 |
def MoveWait(self, units): |
197 |
def MoveWait(self, units): |
| 198 |
' Move some distance units from current position and wait for execution ' |
198 |
' Move some distance units from current position and wait for execution ' |
| 199 |
self.Move(units) |
199 |
self.Move(units) |
| 200 |
while self.GetStatus()['BUSY']: |
200 |
while self.GetStatus()['BUSY']: |
| 201 |
pass |
201 |
pass |
| 202 |
print self.GetStatus() |
- |
|
| 203 |
time.sleep(0.8) |
202 |
time.sleep(0.1) |
| 204 |
|
203 |
|
| 205 |
|
204 |
|
| 206 |
def Float(self, hard = False): |
205 |
def Float(self, hard = False): |
| 207 |
' switch H-bridge to High impedance state ' |
206 |
' switch H-bridge to High impedance state ' |
| 208 |
if (hard == False): |
207 |
if (hard == False): |