Changeset 560 for branches/gui/eml/controllers
- Timestamp:
- Jul 23, 2008, 2:13:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/eml/controllers/PIDIncr.mso
r558 r560 96 96 EQUATIONS 97 97 98 if (tau equal 0) then98 if (tau < 1e-6) then 99 99 "Input first order filter" 100 100 (tau + 1e-3*'s')*diff(Internal.inputFilt)= Ports.input - Internal.inputFilt; … … 104 104 end 105 105 106 if (tauSet equal 0) then106 if (tauSet < 1e-6) then 107 107 "setPoint first order filter" 108 108 (tauSet + 1e-3*'s')*diff(Internal.setPointFilt)= Ports.setPoint - Internal.setPointFilt; … … 151 151 switch Clip 152 152 case "Clipped": 153 if abs(Internal.outps)>1 then 154 "Calculate clipped output when it´s saturated" 155 Ports.output=(sign(Internal.outps)*1+1)/2; 156 else 157 "Calculate clipped output when it´s not saturated" 158 Ports.output=Internal.outp; 159 end 153 #if abs(Internal.outps)>1 then 154 # "Calculate clipped output when it's saturated" 155 # Ports.output=(sign(Internal.outps)*1+1)/2; 156 #else 157 # "Calculate clipped output when it's not saturated" 158 # Ports.output=Internal.outps; 159 #end 160 Ports.output = max([0, Internal.outp]); 160 161 case "Unclipped": 161 162 "Calculate unclipped output"
Note: See TracChangeset
for help on using the changeset viewer.