markdown cleanup
This commit is contained in:
parent
a506e6b815
commit
b4efec3fc2
38
README.md
38
README.md
|
@ -23,6 +23,7 @@ Whilst an expansive scope, the principal development and implementation happened
|
|||
|
||||
## Hardware Components
|
||||
|
||||
|
||||
| part | cost |
|
||||
|-|-|
|
||||
| [Arduino Uno](https://store.arduino.cc/usa/arduino-uno-rev3/) | $22 |
|
||||
|
@ -35,30 +36,35 @@ This BOM is one possible configuration. Substitute parts are available, and any
|
|||
|
||||
## Activities
|
||||
* Control the arm interactively.
|
||||
|
||||
```
|
||||
> ./armCtl.py
|
||||
command# go jib 90
|
||||
command# wait
|
||||
command# go home
|
||||
```
|
||||
|
||||
* Script a simple sequence of moves.
|
||||
```bash
|
||||
# my_script.txt
|
||||
go jib 90
|
||||
wait
|
||||
go home
|
||||
|
||||
> ./armCtl.py my_script.txt
|
||||
```
|
||||
```bash
|
||||
# my_script.txt
|
||||
go jib 90
|
||||
wait
|
||||
go home
|
||||
|
||||
> ./armCtl.py my_script.txt
|
||||
```
|
||||
|
||||
* Write a Python3 script for complex movements.
|
||||
```python
|
||||
#!/usr/bin/env python3
|
||||
import armCtl
|
||||
|
||||
command(text)
|
||||
```python
|
||||
#!/usr/bin/env python3
|
||||
import armCtl
|
||||
|
||||
r.target = [90,120,10,95,90,90]
|
||||
r.move()
|
||||
while r.isMoving():
|
||||
print(r.angle)
|
||||
```
|
||||
command(text)
|
||||
|
||||
r.target = [90,120,10,95,90,90]
|
||||
r.move()
|
||||
while r.isMoving():
|
||||
print(r.angle)
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue