UWB-Algorithm/UWBAnimationShow/ximu_matlab_library/CalInertialAndMagneticDataC...

25 lines
819 B
Matlab
Raw Normal View History

2024-04-27 17:13:37 +08:00
classdef CalInertialAndMagneticDataClass < InertialAndMagneticDataBaseClass
%% Public 'read-only' properties
properties (SetAccess = private)
FileNameAppendage = '_CalInertialAndMag.csv';
end
%% Public methods
methods (Access = public)
function obj = CalInertialAndMagneticDataClass(varargin)
fileNamePrefix = varargin{1};
for i = 2:2:nargin
if strcmp(varargin{i}, 'SampleRate'), obj.SampleRate = varargin{i+1};
else error('Invalid argument.');
end
end
obj.Import(fileNamePrefix);
% Set protected parent class variables
obj.GyroscopeUnits = '^\circ/s';
obj.AccelerometerUnits = 'g';
obj.MagnetometerUnits = 'G';
end
end
end