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


Release history Release notifications

Download files

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

Files for pid_controller, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size pid_controller-0.2.0.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page