Skip to content

Instantly share code, notes, and snippets.

View rringler's full-sized avatar

Ryan Ringler rringler

  • Google
  • San Francisco, CA
View GitHub Profile
@rringler
rringler / python-pid_controller
Created July 6, 2018 03:58 — forked from chaosmail/python-pid_controller
Simple PID Controller
def pid_controller(y, yc, h=1, Ti=1, Td=1, Kp=1, u0=0, e0=0)
"""Calculate System Input using a PID Controller
Arguments:
y .. Measured Output of the System
yc .. Desired Output of the System
h .. Sampling Time
Kp .. Controller Gain Constant
Ti .. Controller Integration Constant
Td .. Controller Derivation Constant
import Ember from 'ember';
export default Ember.Component.extend({
agentCount: null,
didInsertElement() {
const comp = this;
let values$ = Bacon.fromEvent(this, 'test');