1
2
3
4
5
6
7
8
|
function [x_new,y_p] = 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
|
|
|
1
2
3
4
5
6
7
8
|
function [x_new,y_new] = 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
|
19
20
21
22
23
24
25
26
27
|
endif
## Predictor
[y_p,us,x_p] = ppp_ystar (A,B,C,D,x,A_u,U,delta);
## Corrector
x_new = x_p - L*(y_p-y);
endfunction
|
|
|
19
20
21
22
23
24
25
26
27
|
endif
## Predictor
[y_p,us,x_p] = ppp_ystar (A,B,C,D,x,A_u,U,delta);
## Corrector
x_new = x_p - L*(y_p-y);
y_new = C*x_new;
endfunction
|