Skip to content
Snippets Groups Projects
Commit b54e543f authored by Felix Agner's avatar Felix Agner
Browse files

bug fix in dummy bot and examples

parent 74cb4a01
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,9 @@ Note that this package covers the *client side*. For information about setting u
## Installation
On linux:
`pip install git+https://gitlab.control.lth.se/processes/omnibot/omnibot.py`
```
pip install git+https://gitlab.control.lth.se/processes/omnibot/omnibot.py
```
## Usage
......@@ -34,10 +36,12 @@ with Connection(HOST) as bot:
# Target speed for servos
vset = 100
# Go one way
while time() < tstart + 3:
# Record start time
t0 = time()
# Go one way for 3 seconds
while time() < t0 + 3:
# set speeds
bot.set_speeds([vset,vset,vset])
......@@ -51,7 +55,7 @@ with Connection(HOST) as bot:
**Example:**
A pre-defined script which rotates first one way, then the other, and prints logged angle:
```
from omnibot.Dummybot import run_dummybot
from omnibot.dummybot import run_dummybot
# Insert suitable IP-adress
HOST = "localhost"
......
......@@ -25,7 +25,7 @@ def run_dummybot(HOST,verbose=True):
bot.set_speeds([vset,vset,vset])
print('theta:'+bot.get_theta())
print('theta:'+str(bot.get_theta()))
# Go the other way
while time() < tstart + 6:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment