piservopantilt
Initial code to control Raspberry Pi with camera setup on 2-axis servo controlled arm.
Usage
from piservopantilt import ServoControl
s = ServoControl(pan_limits=(650,2500),tilt_limits=(650,2250))
# Move to 0,0
s.min()
# Move to 180,180
s.max()
# Move to specific coordinates
s.move_to(180,0)
Testing
Run unit tests with command:
python3 -m unittest discover -s piservopantilt/tst/
Get test coverage with commands:
coverage run -m unittest discover -s piservopantilt/tst/
coverage report -m
Release files for piservopantilt 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| piservopantilt-0.2.1.tar.gz | 2.6 kB | Details |
Release files / piservopantilt-0.2.1.tar.gz
| Download URL | piservopantilt-0.2.1.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31da256ecf67a20fe33424147e36251846505d023780594ed83eaea774c66ba5
|
|
BLAKE2b-256 checksum How to use checksums |
da4e9a49df9c08558a8f3a41ace4549b1f7d47b1444da005213f09176e3d7169
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3
|