Round all number of SmiData. Simulink: R2018A

This commit is contained in:
Thomas Dehaeze 2018-10-02 18:17:13 +02:00
parent 46a6449bfc
commit 77f8b61d38
6 changed files with 285 additions and 288 deletions

Binary file not shown.

View File

@ -11,8 +11,8 @@ initializeSimConf(opts_sim);
%% Initialize Inputs %% Initialize Inputs
opts_inputs = struct(... opts_inputs = struct(...
'ground_motion', false, ... 'ground_motion', false, ...
'ry', true, ... 'ry', false, ...
'rz', false ... 'rz', true ...
); );
initializeInputs(opts_inputs); initializeInputs(opts_inputs);
@ -42,14 +42,10 @@ initializeMicroHexapod();
initializeAxisc(); initializeAxisc();
%% Initialize NASS %% Initialize NASS
opts_nano_hexapod = struct('actuator', 'lorentz'); initializeNanoHexapod(struct('actuator', 'lorentz'));
initializeNanoHexapod(opts_nano_hexapod);
%% Initialize the Mirror %% Initialize the Mirror
initializeMirror(struct('shape', 'spherical')); initializeMirror(struct('shape', 'spherical'));
%% Initialize Sample %% Initialize Sample
opts_sample = struct('mass', 20); initializeSample(struct('mass', 20));
initializeSample(opts_sample);

View File

@ -1,4 +1,6 @@
%% Load Simulation configuration %% Script that is run just before
% the simulation is started
% Load all the data used for the simulation
load('./mat/sim_conf.mat', 'sim_conf'); load('./mat/sim_conf.mat', 'sim_conf');
%% Load SolidWorks Data %% Load SolidWorks Data

View File

@ -7,4 +7,3 @@ function [ground] = initializeGround()
save('./mat/ground.mat', 'ground') save('./mat/ground.mat', 'ground')
end end
end end

File diff suppressed because it is too large Load Diff

6
main.m
View File

@ -5,10 +5,10 @@ clear; close all; clc;
simulinkproject('./'); simulinkproject('./');
%% Initialization %% Initialization
% Initialize all the stages parameters
run init_data.m
% Initialize the perturbations % Initialize the perturbations
run init_perturbations.m run init_perturbations.m
% Initialize all the stages parameters
run init_data.m
%% %%