node-pid-controller
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "node-pid-controller", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Node.js PID controller", | ||
@@ -17,4 +17,3 @@ "keywords": [ | ||
}, | ||
"dependencies": { | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -21,0 +20,0 @@ "should": "", |
@@ -5,2 +5,4 @@ # node-pid-controller | ||
![pid](http://upload.wikimedia.org/wikipedia/commons/9/91/PID_en_updated_feedback.svg) | ||
## Installation | ||
@@ -29,4 +31,20 @@ | ||
### Normally, you use the correction to a measure, in a closed loop | ||
```js | ||
var goalReached = false | ||
while (!goalReached) { | ||
var output = measureFromSomeSensor(); | ||
var input = ctr.update(output); | ||
applyInputToActuator(input); | ||
goalReached = (input === 0) ? true : false; // in the case of continuous control, you let this variable 'false' | ||
} | ||
``` | ||
## Test | ||
```js | ||
mocha test; | ||
``` | ||
## Author | ||
Philmod <philippe.modard@gmail.com> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3635
48