Remove unused scripts
This commit is contained in:
parent
3a9bdbec7a
commit
9792a73065
22
index.org
22
index.org
@ -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:
|
||||||
|
55
init_data.m
55
init_data.m
@ -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');
|
|
@ -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');
|
|
@ -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');
|
|
Loading…
Reference in New Issue
Block a user