-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIMUModel.m
More file actions
executable file
·130 lines (114 loc) · 4.19 KB
/
IMUModel.m
File metadata and controls
executable file
·130 lines (114 loc) · 4.19 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
function IMU = IMUModel(model)
% DESCRIPTION
% Implements a lookup table for inertial sensor noise parameters.
% Each model is defined by the STANDARD DEVIATION of its component errors.
%
% ARGUMENT
% model = IMU type or model number ('Ideal','MMIMU','LN200','LN100','ADXL103')
%
% RETURN
% IMU = structure containing model parameters
%
% Public Domain
switch model
case 'Ideal'
Gyro.Bias.TurnOn=0; %radian/sec
Gyro.Bias.InRun=0; %radian/sec
Gyro.Bias.Tau=Inf; %sec
Gyro.Scale.TurnOn=0; %parts
Gyro.Scale.InRun=0; %part
Gyro.Scale.Tau=Inf; %sec
Gyro.RandomWalk=0; %radians/sqrt(sec)
Accel.Bias.TurnOn=0; %meters/sec^2
Accel.Bias.InRun=0; %meters/sec^2
Accel.Bias.Tau=Inf; %sec
Accel.Scale.TurnOn=0; %parts
Accel.Scale.InRun=0; %parts
Accel.Scale.Tau=Inf; %sec
Accel.RandomWalk=0; %meters/sec/sqrt(sec)
case 'RandomWalkOnly'
Gyro.Bias.TurnOn=0; %radian/sec
Gyro.Bias.InRun=0; %radian/sec
Gyro.Bias.Tau=Inf; %sec
Gyro.Scale.TurnOn=0; %parts
Gyro.Scale.InRun=0; %part
Gyro.Scale.Tau=Inf; %sec
Gyro.RandomWalk=1E-3; %radians/sqrt(sec)
Accel.Bias.TurnOn=0; %meters/sec^2
Accel.Bias.InRun=0; %meters/sec^2
Accel.Bias.Tau=Inf; %sec
Accel.Scale.TurnOn=0; %parts
Accel.Scale.InRun=0; %parts
Accel.Scale.Tau=Inf; %sec
Accel.RandomWalk=1E-2; %meters/sec/sqrt(sec)
case 'MMIMU'
Gyro.Bias.TurnOn=(pi/180/3600)*3; %radian/sec
Gyro.Bias.InRun=(pi/180/3600)*5; %radian/sec
Gyro.Bias.Tau=100; %sec
Gyro.Scale.TurnOn=(1E-6)*70; %parts
Gyro.Scale.InRun=(1E-6)*100; %parts
Gyro.Scale.Tau=100; %sec
Gyro.RandomWalk=(pi/180/sqrt(3600))*0.05; %radians/sqrt(sec)
Accel.Bias.TurnOn=(9.8E-3)*2; %meters/sec^2
Accel.Bias.InRun=(9.8E-3)*1; %meters/sec^2
Accel.Bias.Tau=60; %sec
Accel.Scale.TurnOn=(1E-6)*125; %parts
Accel.Scale.InRun=(1E-6)*600; %parts
Accel.Scale.Tau=60; %sec
Accel.RandomWalk=(1/sqrt(3600))*0.02; %meters/sec/sqrt(sec)
case 'LN200'
Gyro.Bias.TurnOn=(pi/180/3600)*1; %radian/sec
Gyro.Bias.InRun=(pi/180/3600)*0.35; %radian/sec
Gyro.Bias.Tau=100; %sec
Gyro.Scale.TurnOn=(1E-6)*100; %parts
Gyro.Scale.InRun=0; %parts
Gyro.Scale.Tau=Inf; %sec
Gyro.RandomWalk=(pi/180/sqrt(3600))*0.07; %radians/sqrt(sec)
Accel.Bias.TurnOn=(9.8E-3)*0.2; %meters/sec^2
Accel.Bias.InRun=(9.8E-3)*0.05; %meters/sec^2
Accel.Bias.Tau=60; %sec
Accel.Scale.TurnOn=(1E-6)*300; %parts
Accel.Scale.InRun=0; %parts
Accel.Scale.Tau=Inf; %sec
Accel.RandomWalk=(1/sqrt(3600))*0.03; %meters/sec/sqrt(sec)
case 'LN200real'
warning('LN200real has been replaced by LN200');
IMU=IMUModel('LN200');
return
case 'LN100'
Gyro.Bias.TurnOn=(pi/180/3600)*0.003; %radian/sec
Gyro.Bias.InRun=(pi/180/3600)*0.003; %radian/sec
Gyro.Bias.Tau=100; %sec
Gyro.Scale.TurnOn=(1E-6)*5; %parts
Gyro.Scale.InRun=0; %parts
Gyro.Scale.Tau=Inf; %sec
Gyro.RandomWalk=(pi/180/sqrt(3600))*0.001; %radians/sqrt(sec)
Accel.Bias.TurnOn=(9.8E-3)*0.025; %meters/sec^2
Accel.Bias.InRun=(9.8E-3)*0.01; %meters/sec^2
Accel.Bias.Tau=60; %sec
Accel.Scale.TurnOn=(1E-6)*5; %parts
Accel.Scale.InRun=0; %parts
Accel.Scale.Tau=Inf; %sec
Accel.RandomWalk=(1/sqrt(3600))*0.003; %meters/sec/sqrt(sec)
case 'ADXL103'
Gyro.Bias.TurnOn=(pi/180/3600)*200; %radian/sec
Gyro.Bias.InRun=(pi/180/3600)*200; %radian/sec
Gyro.Bias.Tau=100; %sec
Gyro.Scale.TurnOn=(1E-6)*1000; %parts
Gyro.Scale.InRun=(1E-6)*1000; %parts
Gyro.Scale.Tau=100; %sec
Gyro.RandomWalk=(pi/180/sqrt(3600))*3; %radians/sqrt(sec)
Accel.Bias.TurnOn=(9.8E-3)*25; %meters/sec^2
Accel.Bias.InRun=(9.8E-3)*3.3; %meters/sec^2
Accel.Bias.Tau=60; %sec
Accel.Scale.TurnOn=(1E-6)*3000; %parts
Accel.Scale.InRun=(1E-6)*3000; %parts
Accel.Scale.Tau=60; %sec
Accel.RandomWalk=(1/sqrt(3600))*0.09; %meters/sec/sqrt(sec)
otherwise
error('invalid IMU model name');
end
%store component statistics in the IMU structure
IMU.Gyro=Gyro;
IMU.Accel=Accel;
return