diff options
author | Sunil Shetye | 2018-08-27 14:38:26 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-08-27 16:43:40 +0530 |
commit | 8e6c876e5582928ab6909cf0f3529a97f622520d (patch) | |
tree | 3ce13a7e3552486771d147aec6973ff45a6024a5 /js/Linear/PID.js | |
parent | 5cffbe3aa309e242255b96fe954688c6f1380811 (diff) | |
download | sci2js-8e6c876e5582928ab6909cf0f3529a97f622520d.tar.gz sci2js-8e6c876e5582928ab6909cf0f3529a97f622520d.tar.bz2 sci2js-8e6c876e5582928ab6909cf0f3529a97f622520d.zip |
ignore first and last variable by index, not value
Diffstat (limited to 'js/Linear/PID.js')
-rw-r--r-- | js/Linear/PID.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/js/Linear/PID.js b/js/Linear/PID.js index 176b777f..46ab9ee4 100644 --- a/js/Linear/PID.js +++ b/js/Linear/PID.js @@ -90,16 +90,15 @@ function PID() { this.p = arguments[0]["p"]; this.i = arguments[0]["i"]; this.d = arguments[0]["d"]; - this.exprs0 = arguments[0]["exprs0"]; if (!ok) { break; } if (ok) { - xx1.graphics.exprs = this.exprs0[1-1]; + xx1.graphics.exprs = exprs0[1-1]; xx1.model.rpar = this.p; - xx2.graphics.exprs = this.exprs0[2-1]; + xx2.graphics.exprs = exprs0[2-1]; xx2.model.rpar = this.i; - xx3.graphics.exprs = this.exprs0[3-1]; + xx3.graphics.exprs = exprs0[3-1]; xx3.model.rpar = this.d; break; } |