Skip to content

Commit

Permalink
Also remove unit here, as it caused similar problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Oct 14, 2021
1 parent e26f8f4 commit d033dcb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ block LimitedPI
extent={{20,-20},{-20,20}})));
output Real controlError = u - u_m
"Control error (set point - measurement)";
parameter Real k(unit="1")=1 "Gain";
parameter Real k=1 "Gain";
parameter Boolean useI=true "PI else P" annotation(Evaluate=true);
parameter SI.Time Ti(min=Modelica.Constants.small)=1
"Integral time constant (T>0 required)" annotation(Dialog(enable=useI));
parameter Boolean useFF=false "Use feed-forward?"
annotation(Dialog(group="Feed-forward"));
parameter Boolean useConstantKFF=true "Use constant feed-forward factor?"
annotation(Dialog(group="Feed-forward", enable=useFF));
parameter Real KFF(unit="1")=1 "Feed-forward gain"
parameter Real KFF=1 "Feed-forward gain"
annotation(Dialog(group="Feed-forward", enable=useFF and useConstantKFF));
parameter Boolean constantLimits=true "Use constant limits?"
annotation(Dialog(group="Limitation"));
Expand Down

0 comments on commit d033dcb

Please sign in to comment.