summaryrefslogtreecommitdiff
path: root/js/NonLinear/DLRADAPT_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-16 18:13:55 +0530
committerSunil Shetye2018-07-18 11:36:15 +0530
commit8ce53461fe09f5102deeaedbb87bfc0d4f996ed2 (patch)
tree6b766b7c32effff12fa48cff99f11b9420136610 /js/NonLinear/DLRADAPT_f.js
parent5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (diff)
downloadsci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.gz
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.tar.bz2
sci2js-8ce53461fe09f5102deeaedbb87bfc0d4f996ed2.zip
move the options in the loop
Diffstat (limited to 'js/NonLinear/DLRADAPT_f.js')
-rw-r--r--js/NonLinear/DLRADAPT_f.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/js/NonLinear/DLRADAPT_f.js b/js/NonLinear/DLRADAPT_f.js
index b3840590..c32ec428 100644
--- a/js/NonLinear/DLRADAPT_f.js
+++ b/js/NonLinear/DLRADAPT_f.js
@@ -38,16 +38,16 @@ function DLRADAPT_f() {
return options;
}
DLRADAPT_f.prototype.set = function DLRADAPT_f() {
- this.p = inverse(arguments[0]["p"])
- this.rn = inverse(arguments[0]["rn"])
- this.rd = inverse(arguments[0]["rd"])
- this.g = inverse(arguments[0]["g"])
- this.last_u = inverse(arguments[0]["last_u"])
- this.last_y = inverse(arguments[0]["last_y"])
- this.exprs = arguments[0]["exprs"]
this.exprs = this.graphics.exprs;
while (true) {
- [ok,this.p,this.rn,this.rd,this.g,this.last_u,this.last_y,this.exprs] = scicos_getvalue("Set block parameters",["Vector of p mesh points","Numerator roots (one line for each mesh)","Denominator roots (one line for each mesh)","Vector of gain at mesh points","past inputs (Num degree values)","past outputs (Den degree values)"],list("vec",-1,"mat",[-1,-1],"mat",["size(%1,\'*\')","-1"],"vec","size(%1,\'*\')","vec","size(%2,2)","vec","size(%3,2)"),this.exprs);
+ var ok = true;
+ this.p = inverse(arguments[0]["p"]);
+ this.rn = inverse(arguments[0]["rn"]);
+ this.rd = inverse(arguments[0]["rd"]);
+ this.g = inverse(arguments[0]["g"]);
+ this.last_u = inverse(arguments[0]["last_u"]);
+ this.last_y = inverse(arguments[0]["last_y"]);
+ this.exprs = arguments[0]["exprs"];
if (!ok) {
break;
}