Overview
| Comment: | Sanity test on w |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | origin/master | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
d1d13866616186053a2d5e705efea176 |
| User & Date: | gawthrop@users.sourceforge.net on 2003-05-22 17:26:52.000 |
| Other Links: | branch diff | manifest | tags |
Context
|
2003-06-06
| ||
| 06:40:34 | Made compatible with current MTT. check-in: 9997e50efa user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
|
2003-05-22
| ||
| 17:26:52 | Sanity test on w check-in: d1d1386661 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
|
2003-05-16
| ||
| 14:29:54 | Linear intermittent PPP for real-time control -- Lego RCX in first instance check-in: 5b07002260 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/lib/control/PPP/ppp_lin_run.m
from [572a950a69]
to [566d14aa8d].
| ︙ | |||
39 40 41 42 43 44 45 | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | - + + + + + + + + + |
endif
if nargin<6
p_o.sigma = 0.001;
endif
if !struct_contains(p_c,"N")
|
| ︙ | |||
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | + + + + + + - - + + - + |
## System
sys = mtt2sys(Name); # Create system
[A,B,C,D] = sys2ss(sys); # SS form
[n_x, n_u, n_y] = abcddim(A,B,C,D)
ol_poles = eig(A)
## Check w.
[n_w,m_w] = size(w);
if ( (n_w<>n_y) || (m_w<>1) )
error(sprintf("ppp_lin_run: w must a column vector with %i elements",n_y));
endif
## Initialise
x_0 = zeros(n_x,1);
x_est = x_0;
## Initilise simulation state
x = x_0;
##x(2) = 0.2;
# x(2) = y_0(1);
# x(4) = y_0(2);
if ControlType==0 # Step input
|
| ︙ |