Skip to content

Commit 1e1a72a

Browse files
committed
Update README.md
Adds dt to README
1 parent 525524c commit 1e1a72a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
Let's take the example of a car cruise control. We want the car driving at 120km/h.
1313

1414
### Create a Controller instance
15+
`k_p`, `k_i` and `k_d` are the proportional, integral and derivative terms, `dt` is the interval of time between two measures.
1516
```js
1617
var Controller = require('node-pid-controller');
17-
var ctr = new Controller(0.25, 0.01, 0.01); // k_p, k_i, k_d
18+
var ctr = new Controller(0.25, 0.01, 0.01, 1); // k_p, k_i, k_d, dt
1819
```
1920

2021
### Set the target
@@ -46,4 +47,4 @@ mocha test
4647

4748
## Author
4849

49-
Philmod <[email protected]>
50+
Philmod <[email protected]>

0 commit comments

Comments
 (0)