Skip to main content

Python package for controlling MD80-based actuators

Project description

MD80 Python driver

This Python package allows to configure and control MD80-based actuators using MAB's USB-to-CAN dongle (CANdle). The package is just a wrapper around the C++ libraries so there shouldn't be a hudge decrease in performance with simple python examples in comparison to plain C++.

The original C++ libraries, python examples and pybind configuration can be found here: https://github.com/mabrobotics/candle . Please make sure you read the "Dependencies", "USB Access", and "Latency and bandwith" before you start playing with the examples.

Getting started

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyCandleMAB-1.1.1-py3-none-any.whl (319.8 kB view hashes)

Uploaded Python 3

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