Master Thesis Code
by Simon Moser
Loading...
Searching...
No Matches
exp_231206_scriptAxisTest.m
Go to the documentation of this file.
1%
2% For LICENSE / TERMS OF USE, see the file LICENSE in the root directory of the repository.
3
4clear; close all; clc;
5
6%% add functions path and get data path
7addpath(genpath('../../functions'));
8datapath = getDataPath();
9datapath = fullfile(datapath, "self_captured/231206_axis_test");
10
11%% load data
12data = jumpReadData(fullfile(datapath, "S-24-A-13026_000.BIN"), "plot_time_correction",true);
13
14%% 3x2 subplot with the acceleration data left and the gyroscope data right
15figure(1);
16subplot(3,2,1);
17plot(data.tt.t, data.tt.acc(:,1));
18title("acc x");
19subplot(3,2,3);
20plot(data.tt.t, data.tt.acc(:,2));
21title("acc y");
22subplot(3,2,5);
23plot(data.tt.t, data.tt.acc(:,3));
24title("acc z");
25subplot(3,2,2);
26plot(data.tt.t, data.tt.gyr(:,1));
27title("gyro x");
28subplot(3,2,4);
29plot(data.tt.t, data.tt.gyr(:,2));
30title("gyro y");
31subplot(3,2,6);
32plot(data.tt.t, data.tt.gyr(:,3));
33title("gyro z");
34
35%% Inertial Orientation Estimation with VQF
36% vqf = MyVqf();
37%
38% IOE.vqf = vqf.filterOffline(data.tt.acc, data.tt.gyr, data.tt.mag);
39%
40% %% animate the quaternion
41%
42% animate_quat(IOE.vqf.quat9D);
MyVqf is an interface to the VQF python package.
Definition MyVqf.m:29
function getDataPath()
function jumpReadData(in filePath, in options)