Add accelerometer to the stewart platform
This commit is contained in:
parent
fe26a724f1
commit
b2ed7cbd63
BIN
mat/accelerometer_z_axis.mat
Normal file
BIN
mat/accelerometer_z_axis.mat
Normal file
Binary file not shown.
BIN
mat/geophone_z_axis.mat
Normal file
BIN
mat/geophone_z_axis.mat
Normal file
Binary file not shown.
Binary file not shown.
@ -505,7 +505,7 @@ This Matlab function is accessible [[file:../src/initializeZAxisAccelerometer.m]
|
||||
function [accelerometer] = initializeZAxisAccelerometer(args)
|
||||
arguments
|
||||
args.mass (1,1) double {mustBeNumeric, mustBePositive} = 1e-3 % [kg]
|
||||
args.freq (1,1) double {mustBeNumeric, mustBePositive} = 5e2 % [Hz]
|
||||
args.freq (1,1) double {mustBeNumeric, mustBePositive} = 5e3 % [Hz]
|
||||
end
|
||||
|
||||
%%
|
||||
@ -517,6 +517,9 @@ This Matlab function is accessible [[file:../src/initializeZAxisAccelerometer.m]
|
||||
%% We set the damping value to have critical damping
|
||||
accelerometer.c = 2*sqrt(accelerometer.m * accelerometer.k);
|
||||
|
||||
%% Gain correction of the accelerometer to have a unity gain until the resonance
|
||||
accelerometer.gain = -accelerometer.k/accelerometer.m;
|
||||
|
||||
%% Save
|
||||
save('./mat/accelerometer_z_axis.mat', 'accelerometer');
|
||||
end
|
||||
|
Binary file not shown.
@ -1,7 +1,7 @@
|
||||
function [accelerometer] = initializeZAxisAccelerometer(args)
|
||||
arguments
|
||||
args.mass (1,1) double {mustBeNumeric, mustBePositive} = 1e-3 % [kg]
|
||||
args.freq (1,1) double {mustBeNumeric, mustBePositive} = 5e2 % [Hz]
|
||||
args.freq (1,1) double {mustBeNumeric, mustBePositive} = 5e3 % [Hz]
|
||||
end
|
||||
|
||||
%%
|
||||
@ -13,6 +13,9 @@ function [accelerometer] = initializeZAxisAccelerometer(args)
|
||||
%% We set the damping value to have critical damping
|
||||
accelerometer.c = 2*sqrt(accelerometer.m * accelerometer.k);
|
||||
|
||||
%% Gain correction of the accelerometer to have a unity gain until the resonance
|
||||
accelerometer.gain = -accelerometer.k/accelerometer.m;
|
||||
|
||||
%% Save
|
||||
save('./mat/accelerometer_z_axis.mat', 'accelerometer');
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user