7575aee987
Lot's of new things: - try to use less .mat files - computation of setpoint and error in the cartesian frame fixed to the granite - change of base to have the errors w.r.t. the NASS base - add script to plot setpoint, position and error
16 lines
300 B
Matlab
16 lines
300 B
Matlab
%%
|
|
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'); |