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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

procdrive-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file procdrive-1.0.0.tar.gz.

File metadata

  • Download URL: procdrive-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for procdrive-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9de558cea30b116d85a0be40c1b859ad7a46d06da50911f21fffb306a2ec836c
MD5 4d54fae933cc66d7b2e6d210f2229b91
BLAKE2b-256 4b8c1ab6b50022243512f7424e91b0bf617752d3087041b890a32721a4d63923

See more details on using hashes here.

File details

Details for the file procdrive-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: procdrive-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for procdrive-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fac18019d53e220b3fb0c3fd1f56ad2f00a5564ed30aec60e48116ab7efcb69e
MD5 e741fe18bc5c45fe698da644c7647461
BLAKE2b-256 cc642dcb2f23a7b20439af3c7a76b0cc1fe3525bc73e711362aad7705fb6df61

See more details on using hashes here.

Supported by

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