This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
beginhere [2020/10/03 21:03] bob |
beginhere [2020/10/03 21:36] (current) bob |
||
|---|---|---|---|
| Line 176: | Line 176: | ||
| The links of videos are embedded inside the python code | The links of videos are embedded inside the python code | ||
| + | | ||
| # one example to use python to control the moving of robot, do this, | # one example to use python to control the moving of robot, do this, | ||
| # comment out the line " | # comment out the line " | ||
| Line 188: | Line 188: | ||
| # https:// | # https:// | ||
| # you will see robot keeps ouputing counts and times | # you will see robot keeps ouputing counts and times | ||
| + | | ||
| # to use python to control both robot and encorder | # to use python to control both robot and encorder | ||
| # you need to do some coding | # you need to do some coding | ||
| Line 200: | Line 200: | ||
| os.system ("cat DPCore.bin > / | os.system ("cat DPCore.bin > / | ||
| os.system (" | os.system (" | ||
| - | |||
| os.system (" | os.system (" | ||
| os.system (" | os.system (" | ||
| Line 206: | Line 205: | ||
| while(1): | while(1): | ||
| | | ||
| - | | + | |
| - | os.system (" | + | os.system (" |
| - | os.system (" | + | os.system (" |
| - | os.system (" | + | os.system (" |
| - | os.system (" | + | os.system (" |
| - | os.system (" | + | os.system (" |
| - | os.system (" | + | os.system (" |
| - | time.sleep(5) | + | time.sleep(5) |
| - | os.system (" | + | os.system (" |
| - | os.system (" | + | os.system (" |
| - | + | os.system (" | |
| - | | + | os.system (" |
| - | os.system (" | + | os.system (" |
| - | os.system (" | + | os.system (" |
| - | os.system (" | + | time.sleep(5) |
| - | time.sleep(5) | + | |