forked from marynelv/IVCalibrationToolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocessModel.m
More file actions
20 lines (18 loc) · 695 Bytes
/
processModel.m
File metadata and controls
20 lines (18 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function x_k=processModel(x_kminus1, timestep, usetranslationonly)
% x_kminus1: 26x1 state vector or 26 x 2N+1 sigma points
% timestep: scalar
% usetranslationonly: true or false, true if only translation model is used
%
% x_k: if only translation model is used: 3x1 state vector or 3 x 2N+1
% sigma points
% if translation model is not used: 26x1 state vector or 26 x 2N+1
% sigma points
%
% NOTE: The full x_k vector is defined in equation (13), page 9
if usetranslationonly
x_k=processModelTranslation(x_kminus1(1:3,:), x_kminus1(8:10,:), timestep);
else
fprintf('Sorry, the general model is not yet implemented :). set usetranslationonly to 1');
x_k=[];
end
end