mc;

%% AO

pl= plist('tsfcn', 'randn(size(t))', 'fs', 10, 'nsecs', 100);
a = ao(pl);
a.setName;
a.setDescription('This is just a test AO for testing the report thingy.');
a.setProperties(plist('plotinfo', plist('a', 123)));

%% FSDATA AO

fsa = a.psd;

%% PZMODEL

pzm = pzmodel(1, {[10 2], 5}, {4,5});
pzm.setName

%% Filters

iir = miir(plist('type', 'lowpass', 'fs', 10));
fir = mfir(plist('type', 'lowpass', 'fs', 10));


%% SSM

Thrusters = ssm(plist('built-in', 'MPS', ...
  'dim', 1, ...
  'withParams', true));

ESS = ssm(plist('built-in', 'TMActuation_xcpl', ...
  'dim', 1, ...
  'withParams', true));
D = ssm(plist('built-in', 'LPF_Dynamics', ...
  'dim', 1, ...
  'withParams', true));


sm = assemble(D, Thrusters, ESS)

%% Output

outdir = 'ltpda_report_test';
report(fsa, a, pzm, sm, fir, iir, plist('dir', outdir, 'extras', true));

