Differences From Artifact [24ed193861]:
- File mttroot/mtt/lib/control/PPP/ppp_int_obs.m — part of check-in [7337ff5fe9] at 2003-06-09 10:49:23 on branch origin/master — Include error in out args (user: gawthrop@users.sourceforge.net, size: 617) [annotate] [blame] [check-ins using] [more...]
To Artifact [982a22072f]:
- File mttroot/mtt/lib/control/PPP/ppp_int_obs.m — part of check-in [a8c356c721] at 2003-10-15 16:14:38 on branch origin/master — Correct on current value, predict next value (user: gawthrop@users.sourceforge.net, size: 652) [annotate] [blame] [check-ins using] [more...]
|
| | > > > > | | < < < < | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
function [x_p,y_p,error] = ppp_int_obs (x,y,U,A,B,C,D,A_u,delta,L)
## usage: x_new = ppp_int_obs (x,y,U,A,B,C,D,A_u,delta,L)
##
## Intermittent observer for PPP
##
## x,y Current estimated state and measured output
## U PPP control weights
## A,B,C,D System matrices
## A_u PPP basis matrix
## delta time step
## L Observer gain
## Sanity check
[n_x,n_u,n_y] = abcddim(A,B,C,D);
if nargin<10
L = zeros(n_x,n_y);
endif
## Corrector (on current value of output)
error = (C*x-y);
x_new = x - L*error;
## Predictor (predicts Delta_OL ahead)
[y_p,us,x_p] = ppp_ystar (A,B,C,D,x_new,A_u,U,delta);
endfunction
|