Skip to main content

Python package for controlling MD80-based actuators

Project description

MD80 Python driver

This Python package can be used to configure and control MD80-based actuators using MAB's communication dongle (CANdle or CANdle HAT). The package is a wrapper around the C++ library - with simple python examples there won’t be any noticeable performance decrease compared to plain C++, however for real-time applications we advise using C++ libraries directly.

The original C++ libraries and python examples are located in the candle repository. Please make sure you read the MD80 x CANdle manual before you start playing with the examples.

Getting started

Assuming you've already read the manual from previous section and performed the necessary setup steps now's the time to install pyCandle package:

python3 -m pip install pyCandleMAB

or when you're working with Raspberry PI:

sudo python3 -m pip install pyCandleMAB

when the package is installed without errors connect CANdle device to your PC and run the first example:

python3 ./example1.py

when a signle actuator is connected to the dongle the console output should look simmilar to:

[CANDLE] Creating CANdle object.
[CANDLE] Reset successfull!
[CANDLE] CANdle ready.
[CANDLE] Starting pinging drives...
[CANDLE] Found drives.
[CANDLE] 1: ID = 85 (0x55)
[CANDLE] LEDs blining at ID = 85
EXIT SUCCESS

For more examples visit: https://github.com/mabrobotics/candle/tree/main/examples_python

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

pyCandleMAB-1.5.0.tar.gz (742.2 kB view hashes)

Uploaded Source

Built Distributions

pyCandleMAB-1.5.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (198.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyCandleMAB-1.5.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (198.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyCandleMAB-1.5.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (198.9 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyCandleMAB-1.5.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (198.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pyCandleMAB-1.5.0-cp312-cp312-musllinux_1_1_x86_64.whl (719.9 kB view hashes)

Uploaded CPython 3.12 musllinux: musl 1.1+ x86-64

pyCandleMAB-1.5.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (197.7 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pyCandleMAB-1.5.0-cp311-cp311-musllinux_1_1_x86_64.whl (722.7 kB view hashes)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

pyCandleMAB-1.5.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199.5 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pyCandleMAB-1.5.0-cp310-cp310-musllinux_1_1_x86_64.whl (722.6 kB view hashes)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

pyCandleMAB-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199.5 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pyCandleMAB-1.5.0-cp39-cp39-musllinux_1_1_x86_64.whl (722.9 kB view hashes)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

pyCandleMAB-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199.7 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pyCandleMAB-1.5.0-cp38-cp38-musllinux_1_1_x86_64.whl (722.9 kB view hashes)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

pyCandleMAB-1.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (199.2 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pyCandleMAB-1.5.0-cp37-cp37m-musllinux_1_1_x86_64.whl (728.8 kB view hashes)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

pyCandleMAB-1.5.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (204.2 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pyCandleMAB-1.5.0-cp36-cp36m-musllinux_1_1_x86_64.whl (728.8 kB view hashes)

Uploaded CPython 3.6m musllinux: musl 1.1+ x86-64

pyCandleMAB-1.5.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (204.2 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page