Skip to content

Commit b635d68

Browse files
committed
fix PID module
1 parent 373804a commit b635d68

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

modules/PID.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ PID.prototype.step = function(err) {
4343
return this.out;
4444
};
4545

46-
46+
exports = PID;

modules/PID.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ response you'll want to call `pid.step` at a set time interval.
2525
For example to modulate temperature for a heater:
2626

2727
```JS
28+
const PID = require("PID");
2829
var pid = new PID({
2930
Pg : 1, // proportional gain
3031
Ig : 1, // integral gain

0 commit comments

Comments
 (0)