Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-pid-controller

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pid-controller - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

5

package.json
{
"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>
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc