node-pid-controller
Advanced tools
Comparing version
{ | ||
"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 | ||
 | ||
## 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> |
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
3635
15.29%48
60%