From ca1a67f78f7de40a7956c69e41f4ddae2542f4f2 Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 2 Jul 2018 22:51:03 +0530 Subject: add options block --- js/Linear/PID.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js/Linear/PID.js') 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"])) -- cgit