Mercurial > hg > ltpda
comparison m-toolbox/test/test_report.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 mc; | |
2 | |
3 %% AO | |
4 | |
5 pl= plist('tsfcn', 'randn(size(t))', 'fs', 10, 'nsecs', 100); | |
6 a = ao(pl); | |
7 a.setName; | |
8 a.setDescription('This is just a test AO for testing the report thingy.'); | |
9 a.setProperties(plist('plotinfo', plist('a', 123))); | |
10 | |
11 %% FSDATA AO | |
12 | |
13 fsa = a.psd; | |
14 | |
15 %% PZMODEL | |
16 | |
17 pzm = pzmodel(1, {[10 2], 5}, {4,5}); | |
18 pzm.setName | |
19 | |
20 %% Filters | |
21 | |
22 iir = miir(plist('type', 'lowpass', 'fs', 10)); | |
23 fir = mfir(plist('type', 'lowpass', 'fs', 10)); | |
24 | |
25 | |
26 %% SSM | |
27 | |
28 Thrusters = ssm(plist('built-in', 'MPS', ... | |
29 'dim', 1, ... | |
30 'withParams', true)); | |
31 | |
32 ESS = ssm(plist('built-in', 'TMActuation_xcpl', ... | |
33 'dim', 1, ... | |
34 'withParams', true)); | |
35 D = ssm(plist('built-in', 'LPF_Dynamics', ... | |
36 'dim', 1, ... | |
37 'withParams', true)); | |
38 | |
39 | |
40 sm = assemble(D, Thrusters, ESS) | |
41 | |
42 %% Output | |
43 | |
44 outdir = 'ltpda_report_test'; | |
45 report(fsa, a, pzm, sm, fir, iir, plist('dir', outdir, 'extras', true)); | |
46 |