Overview
Comment:Correct on current value, predict next value
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 0ae8799f8836d4dddbfa2477352c14d9b887f0c1f7f58d3fb9c35220550d2792
User & Date: gawthrop@users.sourceforge.net on 2003-10-15 16:14:38
Other Links: branch diff | manifest | tags
Context
2003-10-15
16:21:20
Simulation and real now compatible! check-in: 265bc11f8e user: gawthrop@users.sourceforge.net tags: origin/master, trunk
16:14:38
Correct on current value, predict next value check-in: 0ae8799f88 user: gawthrop@users.sourceforge.net tags: origin/master, trunk
2003-10-11
15:08:54
mtt -ibg Clutch odeso view now works!
The order in which bonds are listed in each row of the connection/components matrix matters.
Bonds with SS components at the other end are listed first (in order?).
check-in: c5dc02ddd6 user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/lib/control/PPP/ppp_int_obs.m from [24ed193861] to [982a22072f].

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

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_new,y_new,error] = ppp_int_obs (x,y,U,A,B,C,D,A_u,delta,L)
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
  [y_p,us,x_p] = ppp_ystar (A,B,C,D,x,A_u,U,delta);
  ## Predictor (predicts Delta_OL ahead)
  [y_p,us,x_p] = ppp_ystar (A,B,C,D,x_new,A_u,U,delta);

  ## Corrector
  error = (y_p-y);
  x_new = x_p - L*error;
  y_new = C*x_new;
endfunction


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]