New configurable simscape model. Add logging block

This commit is contained in:
2020-02-18 11:33:04 +01:00
parent aa2f3254c2
commit b54db6fa0d
25 changed files with 1225 additions and 1050 deletions

View File

@@ -95,14 +95,7 @@ We set the references to zero.
And all the controllers are set to 0.
#+begin_src matlab
K = tf(zeros(6));
save('./mat/controllers.mat', 'K', '-append');
K_ine = tf(zeros(6));
save('./mat/controllers.mat', 'K_ine', '-append');
K_iff = tf(zeros(6));
save('./mat/controllers.mat', 'K_iff', '-append');
K_dvf = tf(zeros(6));
save('./mat/controllers.mat', 'K_dvf', '-append');
initializeController('type', 'open-loop');
#+end_src
*** Identification
@@ -330,8 +323,8 @@ We initialize elements for the tomography experiment.
We change the simulation stop time.
#+begin_src matlab
load('mat/conf_simscape.mat');
set_param(conf_simscape, 'StopTime', '3');
load('mat/conf_simulink.mat');
set_param(conf_simulink, 'StopTime', '3');
#+end_src
And we simulate the system.
@@ -423,14 +416,7 @@ We set the references to zero.
And all the controllers are set to 0.
#+begin_src matlab
K = tf(zeros(6));
save('./mat/controllers.mat', 'K', '-append');
K_ine = tf(zeros(6));
save('./mat/controllers.mat', 'K_ine', '-append');
K_iff = tf(zeros(6));
save('./mat/controllers.mat', 'K_iff', '-append');
K_dvf = tf(zeros(6));
save('./mat/controllers.mat', 'K_dvf', '-append');
initializeController('type', 'open-loop');
#+end_src
*** Identification