Port of the roboteq API
Project description
Example Usage:
```
from roboteq import RoboteqDevice
from roboteq.roboteq_constants import _MMOD, _G, _RWD, _MXMD, _MXRPM
device = RoboteqDevice()
device.connect("/dev/serial/by-id/usb-Roboteq_Motor_Controller_FBL2XXX-if00")
time.sleep(0.1)
device.set_config(_MMOD, 0, 6)
time.sleep(0.1)
device.command_motor(_G, 1, 0)
time.sleep(0.1)
device.command_motor(_G, 2, 0)
time.sleep(0.1)
device.set_config(_RWD, 1000)
time.sleep(0.1)
device.set_config(_MXMD, 1)
time.sleep(0.1)
device.send_command(_MXRPM, 1, 500)
time.sleep(0.1)
device.send_command(_MXRPM, 2, 500)
time.sleep(0.1)
```
```
from roboteq import RoboteqDevice
from roboteq.roboteq_constants import _MMOD, _G, _RWD, _MXMD, _MXRPM
device = RoboteqDevice()
device.connect("/dev/serial/by-id/usb-Roboteq_Motor_Controller_FBL2XXX-if00")
time.sleep(0.1)
device.set_config(_MMOD, 0, 6)
time.sleep(0.1)
device.command_motor(_G, 1, 0)
time.sleep(0.1)
device.command_motor(_G, 2, 0)
time.sleep(0.1)
device.set_config(_RWD, 1000)
time.sleep(0.1)
device.set_config(_MXMD, 1)
time.sleep(0.1)
device.send_command(_MXRPM, 1, 500)
time.sleep(0.1)
device.send_command(_MXRPM, 2, 500)
time.sleep(0.1)
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
roboteq-0.8.tar.gz
(2.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
roboteq-0.8-py3-none-any.whl
(3.6 kB
view details)
File details
Details for the file roboteq-0.8.tar.gz.
File metadata
- Download URL: roboteq-0.8.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1f1168b829175f7091b51a1d88aa70134a28bdf5be62c8adb1b4e98807366ae
|
|
| MD5 |
4e433ad02fdd110c5c8688453e3ac7ce
|
|
| BLAKE2b-256 |
3c20bfcf84a7dc7c38a35de1f7a0e2864a5bc62eb225084781dc115a8ee5a6aa
|
File details
Details for the file roboteq-0.8-py3-none-any.whl.
File metadata
- Download URL: roboteq-0.8-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd43f34b1e2dd67bb84b4805937634c0713cdc62d5b23a414378c29fe29b0117
|
|
| MD5 |
e3840b8cf6f7f19fdf61cb334d5f0bd9
|
|
| BLAKE2b-256 |
906ca5c89b2244aed8410f4653420f1500c2c9a941ac9ac2ff1d28cdc714b633
|