Skip to content
Snippets Groups Projects
Commit 06418ca4 authored by Federico Felici's avatar Federico Felici
Browse files

Merge remote-tracking branch 'origin/master' into add-RAPDENS

parents 0ce334be 03db16b4
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -41,7 +41,7 @@ result = sim(SimIn); ...@@ -41,7 +41,7 @@ result = sim(SimIn);
% check output port data % check output port data
tp = SCDalgo_template_loadtp; tp = SCDalgo_template_loadtp;
output = result.SimOut{1}.Values.SCDsignal_example_3.Value; output = result.SimOut{1}.Values.SCDsignal_example_3.Value;
assert(max(output) == tp.gain,'Wrong output!'); assert(max(output) == 7,'Wrong output!');
% check logs which contain a SCDsignal type data % check logs which contain a SCDsignal type data
logsout = result.logsout; logsout = result.logsout;
......
...@@ -2,5 +2,5 @@ function fp = SCDalgo_template_loadfp(obj) ...@@ -2,5 +2,5 @@ function fp = SCDalgo_template_loadfp(obj)
%% Load other fixed parameters %% Load other fixed parameters
fp.timing = obj.gettiming; fp.timing = obj.gettiming;
fp.refmodel.offset = 1; % a fixed parameter
end end
\ No newline at end of file
...@@ -2,5 +2,5 @@ function TP = SCDalgo_template_loadtp() ...@@ -2,5 +2,5 @@ function TP = SCDalgo_template_loadtp()
% Setup tunable control params % Setup tunable control params
TP.gain = single(2); TP.gain = single(2);
TP.refmodel.gain = 4; % another gain used in referenced model
end end
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment