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)
|
function [accelerometer] = initializeZAxisAccelerometer(args)
|
||||||
arguments
|
arguments
|
||||||
args.mass (1,1) double {mustBeNumeric, mustBePositive} = 1e-3 % [kg]
|
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
|
end
|
||||||
|
|
||||||
%%
|
%%
|
||||||
@ -517,6 +517,9 @@ This Matlab function is accessible [[file:../src/initializeZAxisAccelerometer.m]
|
|||||||
%% We set the damping value to have critical damping
|
%% We set the damping value to have critical damping
|
||||||
accelerometer.c = 2*sqrt(accelerometer.m * accelerometer.k);
|
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
|
||||||
save('./mat/accelerometer_z_axis.mat', 'accelerometer');
|
save('./mat/accelerometer_z_axis.mat', 'accelerometer');
|
||||||
end
|
end
|
||||||
|
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
function [accelerometer] = initializeZAxisAccelerometer(args)
|
function [accelerometer] = initializeZAxisAccelerometer(args)
|
||||||
arguments
|
arguments
|
||||||
args.mass (1,1) double {mustBeNumeric, mustBePositive} = 1e-3 % [kg]
|
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
|
end
|
||||||
|
|
||||||
%%
|
%%
|
||||||
@ -13,6 +13,9 @@ function [accelerometer] = initializeZAxisAccelerometer(args)
|
|||||||
%% We set the damping value to have critical damping
|
%% We set the damping value to have critical damping
|
||||||
accelerometer.c = 2*sqrt(accelerometer.m * accelerometer.k);
|
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
|
||||||
save('./mat/accelerometer_z_axis.mat', 'accelerometer');
|
save('./mat/accelerometer_z_axis.mat', 'accelerometer');
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user