Remove unused scripts

This commit is contained in:
Thomas Dehaeze 2019-11-22 11:02:23 +01:00
parent 3a9bdbec7a
commit 9792a73065
4 changed files with 0 additions and 101 deletions

View File

@ -301,28 +301,6 @@ A simulink library is developed in order to share elements between the different
** RotationMatrixToAngle ** RotationMatrixToAngle
* Scripts
** Simulation Initialization
:PROPERTIES:
:header-args:matlab+: :tangle src/init_simulation.m
:header-args:matlab+: :comments org :mkdirp yes
:header-args:matlab+: :eval no :results none
:END:
<<sec:init_simulation>>
This Matlab script is accessible [[file:src/init_simulation.m][here]].
This script runs just before the simulation is started.
It is used to load the simulation configuration and the controllers used for the simulation.
#+begin_src matlab
%% Load all the data used for the simulation
load('sim_conf.mat');
%% Load Controller
load('controllers.mat');
#+end_src
* Functions * Functions
** computePsdDispl ** computePsdDispl
:PROPERTIES: :PROPERTIES:

View File

@ -1,55 +0,0 @@
%%
clear; close all; clc;
%% Initialize simulation configuration
opts_sim = struct(...
'Tsim', 5 ...
);
initializeSimConf(opts_sim);
%% Initialize Inputs
opts_inputs = struct(...
'Dw', true, ...
'Ry', false, ...
'Rz', true ...
);
initializeInputs(opts_inputs);
%% Initialize Ground
initializeGround();
%% Initialize Granite
initializeGranite();
%% Initialize Translation stage
initializeTy();
%% Initialize Tilt Stage
initializeRy();
%% Initialize Spindle
initializeRz();
%% Initialize Hexapod Symétrie
initializeMicroHexapod();
%% Initialize Center of Gravity compensation
initializeAxisc();
%% Initialize NASS
initializeNanoHexapod(struct('actuator', 'lorentz'));
%% Initialize the Mirror
initializeMirror(struct('shape', 'spherical'));
%% Initialize Sample
initializeSample(struct('mass', 20));
%% Controllers
K = tf(zeros(6));
K_iff = tf(zeros(6));
save('./mat/controllers.mat', 'K', 'K_iff');

View File

@ -1,16 +0,0 @@
%%
clear; close all; clc;
%%
s = tf('s');
%% Ground Motion
Wxg = 1e-5*(s/(2e2)^(1/3) + 2*pi*0.1)^3/(s + 2*pi*0.1)^3;
Wxg = Wxg*(s/(0.5e6)^(1/3) + 2*pi*10)^3/(s + 2*pi*10)^3;
Wxg = Wxg/(1+s/(2*pi*2000));
%% Sensor Noise
Wn = tf(1e-12);
%% Save Weights
save('./mat/perturbations.mat', 'Wxg', 'Wn');

View File

@ -1,8 +0,0 @@
%% Script that is run just before
% the simulation is started
%% Load all the data used for the simulation
load('./mat/sim_conf.mat');
%% Load Controller
load('./mat/controllers.mat');