Overview
Comment: | Added p_o.method = "remote" ; observer in rtlab |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
b0088c4e0a4ba0e7128e1de316c8e46d |
User & Date: | gawthrop@users.sourceforge.net on 2003-11-03 23:51:14 |
Other Links: | branch diff | manifest | tags |
Context
2003-11-04
| ||
21:19:19 | Fixed simulation in remote observer mode check-in: b97106a191 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
2003-11-03
| ||
23:51:14 | Added p_o.method = "remote" ; observer in rtlab check-in: b0088c4e0a user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
02:47:47 | Show constained and controlled outputs seperately. check-in: ad19b07f17 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/control/PPP/ppp_lin_run.m from [ffa3ddfa64] to [df48e84740].
︙ | |||
144 145 146 147 148 149 150 | 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | - + + | if !struct_contains(p_o,"x_0") p_o.x_0 = zeros(n_x,1); endif if !struct_contains(p_o,"method") ##p_o.method = "continuous"; |
︙ | |||
220 221 222 223 224 225 226 227 228 229 230 231 232 233 | 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | + + + | A_ud = expm(p_c.A_u*dt); # Discrete-time input transition if (ControlType==2) # [L, M, P, obs_poles] = dlqe(Ad,G,C,sigma_x,Sigma); else L = zeros(n_x,n_y); obs_poles = eig(Ad); endif elseif strcmp(p_o.method, "remote") L = zeros(n_x,n_y); obs_poles = []; else error(sprintf("Observer method ""%s"" unknown", p_o.method)); endif ## Display the poles obs_poles |
︙ | |||
263 264 265 266 267 268 269 | 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 | + + + + - + + + + + + | t_sim = [1:p_c.N]*dt; # Simulation time points [yi,ui,xsi] = ppp_ystar(A,B,C,D,x,p_c.A_u,U,t_sim); # Simulate x = xsi(:,p_c.N); # Current state (for next time) ti = [(i-1)*p_c.N:i*p_c.N-1]*dt; y_i = yi(1); # Current output t_i = ti(1); else # The real thing if strcmp(p_o.method, "remote") [t_i,y_i,X] = ppp_put_get_X(U); # Remote-state interface u_i = X(3); # Integrated control is third state else |
︙ |