Skip to main content

Simple PID controller implementation

Project description

This implements a basic pure-Pyton PID controller (http://en.wikipedia.org/wiki/PID_controller).

Installation

Run:

pip install pid_controller

Usage

from pid_controller.pid import PID pid = PID(p=0.1, i=0.004, d=3.0) output = pid(feedback=get_feedback())

Development

Run unittests:

export TESTNAME=; tox

To run a specific unittest:

export TESTNAME=.test_robot_steering; tox

To run tests for a specific environment (e.g. Python 2.7 with Django 1.4):

export TESTNAME=; tox -e py27

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

pid_controller-0.2.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file pid_controller-0.2.0.tar.gz.

File metadata

File hashes

Hashes for pid_controller-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e5b0ada0c5c2d46488cab82285fbb3cd1df8abc6273844d2ac44ddcb8af62010
MD5 09d143f8d9ba41479eeb21c3c873021c
BLAKE2b-256 3ff5da1920ce849f33a4e920e962b42510654b2f855bf94c6a214858630bc0c8

See more details on using hashes here.

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