2018-06-16 22:57:54 +02:00
|
|
|
%%
|
|
|
|
clear; close all; clc;
|
|
|
|
|
|
|
|
%%
|
2018-10-07 22:07:21 +02:00
|
|
|
K_iff = tf(zeros(6));
|
|
|
|
save('./mat/K_iff.mat', 'K_iff');
|
|
|
|
|
|
|
|
%% Light Sample
|
2018-06-16 22:57:54 +02:00
|
|
|
initializeSample(struct('mass', 1));
|
|
|
|
|
2018-10-07 22:07:21 +02:00
|
|
|
initializeNanoHexapod(struct('actuator', 'lorentz'));
|
|
|
|
G_light_vc = identifyPlant();
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2018-10-03 13:55:09 +02:00
|
|
|
initializeNanoHexapod(struct('actuator', 'piezo'));
|
2018-10-07 22:07:21 +02:00
|
|
|
G_light_pz = identifyPlant();
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2018-10-07 22:07:21 +02:00
|
|
|
%% Heavy Sample
|
2018-06-16 22:57:54 +02:00
|
|
|
initializeSample(struct('mass', 50));
|
|
|
|
|
2018-10-07 22:07:21 +02:00
|
|
|
initializeNanoHexapod(struct('actuator', 'lorentz'));
|
|
|
|
G_heavy_vc = identifyPlant();
|
2018-10-03 13:55:09 +02:00
|
|
|
|
|
|
|
initializeNanoHexapod(struct('actuator', 'piezo'));
|
2018-10-07 22:07:21 +02:00
|
|
|
G_heavy_pz = identifyPlant();
|
2018-06-16 22:57:54 +02:00
|
|
|
|
2018-10-02 21:46:34 +02:00
|
|
|
%% Save the obtained transfer functions
|
2018-10-07 22:07:21 +02:00
|
|
|
save('./mat/G.mat', 'G_light_vc', 'G_light_pz', 'G_heavy_vc', 'G_heavy_pz');
|