Skip to main content

Procedural wrappe for controlling a single Anki Overdrive vehicle

Project description

procdrive

Procdrive is a procedural wrapper around py-easydrive which is itself a wrapper around py-drivesdk.

This library was developed to provide a practical environment for learning Python. Procdrive aims to be simple and intuitive and a transition into more complicated language constructs such as object orientation and exception handling.

Limitations

Since Procdrive is not object-oriented, it does not provide support for controlling multiple vehicles at the same time. If you require this functionality you should check out the other libraries mentioned above.

Installation

As Procdrive does not have a pip repository yet, the install process is a little involved:

git clone https://github.com/PascalRombach/procdrive.git
cd procdrive

Linux

python3 -m pip install .

Windows

py -m pip install .

Code Example

Coding in procdrive is very simple. The following code scans the current map in and then reports the track pieces in order.

from procdrive import *

connect()
scan()

set_speed(300)
while True:
    print(wait_for_track_change())

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

procdrive-1.0.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

procdrive-1.0.0-py3-none-any.whl (3.7 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