forked from Kingshida/NaveGo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavego_allan_example.m
60 lines (51 loc) · 1.88 KB
/
navego_allan_example.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
% navego_allan_example: example of how to implement the Allan variance
% procedure with NaveGo functions.
%
% Copyright (C) 2014, Rodrigo Gonzalez, all rights reserved.
%
% This file is part of NaveGo, an open-source MATLAB toolbox for
% simulation of integrated navigation systems.
%
% NaveGo is free software: you can redistribute it and/or modify
% it under the terms of the GNU Lesser General Public License (LGPL)
% version 3 as published by the Free Software Foundation.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
% GNU Lesser General Public License for more details.
%
% You should have received a copy of the GNU Lesser General Public
% License along with this program. If not, see
% <http://www.gnu.org/licenses/>.
%
% References:
%
% Sensonor AS. Sensonor STIM300 Inertial Measurement Unit
% http://www.sensonor.com/gyro-products/inertial-measurement-units/stim300.aspx7.
%
% Two hours of static measurements from STIM300 IMU were generously
% provided by Prof. Zhu, Dr. Yang, and Mr. Bo Sun, all from the Laboratory
% of Precision Measuring Technology and Instruments, Tianjin University,
% Tianjin, China.
%
% Version: 002
% Date: 2017/03/15
% Author: Rodrigo Gonzalez <rodralez@frm.utn.edu.ar>
% URL: https://github.com/rodralez/navego
clc
clear
close all
matlabrc
versionstr = 'NaveGo, release v0.8.0-alpha';
fprintf('\n%s.\n', versionstr)
fprintf('\nNaveGo: starting Allan variance analysis ... \n')
load stim300
%% ALLAN VARIANCE FOR STIM300 IMU
[stim300] = allan_imu (stim300);
stim300_arw = stim300.arw
stim300_vrw = stim300.vrw
stim300_ab_drift = stim300.ab_drift
stim300_gb_drift = stim300.gb_drift
stim300_ab_corr = stim300.ab_corr
stim300_gb_corr = stim300.gb_corr