Skip to content

Instantly share code, notes, and snippets.

@DzikuVx
Created January 21, 2017 21:17
Show Gist options
  • Save DzikuVx/b7175ee990c18311af312174189315e1 to your computer and use it in GitHub Desktop.
Save DzikuVx/b7175ee990c18311af312174189315e1 to your computer and use it in GitHub Desktop.
JavaScript PID controller example usage
privateScope.loadPidController = new classes.PidController();
privateScope.loadPidController.setTarget(privateScope.targetLoad);
privateScope.loadPidController.setOutput(0, 97, 0);
privateScope.loadPidController.setGains(16, 6, 4);
privateScope.loadPidController.setItermLimit(0, 90);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment