diff options
author | Sunil Shetye | 2018-07-02 22:51:03 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-02 22:51:03 +0530 |
commit | ca1a67f78f7de40a7956c69e41f4ddae2542f4f2 (patch) | |
tree | 6a07bd0428e542567726ff7325fcb71203ad6d15 /js/Linear/PID.js | |
parent | 5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (diff) | |
download | sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.gz sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.bz2 sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.zip |
add options block
Diffstat (limited to 'js/Linear/PID.js')
-rw-r--r-- | js/Linear/PID.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/Linear/PID.js b/js/Linear/PID.js index 0b5faeb3..c07683ba 100644 --- a/js/Linear/PID.js +++ b/js/Linear/PID.js @@ -43,6 +43,12 @@ function PID() { return this.x; } PID.prototype.get = function PID() { + var options = { + p:["Proportional",this.p], + i:["Integral",this.i], + d:["Derivation",this.d], + } + return options; } PID.prototype.set = function PID() { this.p = parseFloat((arguments[0]["p"])) |