Skip to content

Commit f6bfb2f

Browse files
committed
2019-01-10
1 parent a36be5c commit f6bfb2f

File tree

5 files changed

+51
-760
lines changed

5 files changed

+51
-760
lines changed

correct_yaw.m

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
function yaw_new = correct_yaw (yaw)
2+
% correct_yaw: guarantee that yaw angle is between -pi and pi.
3+
%
4+
% INPUT:
5+
% yaw, Nx1 vector (radians).
6+
%
7+
% OUTPUT:
8+
% yaw_new, Nx1 vector (radians).
9+
%
10+
%
11+
% Copyright (C) 2014, Rodrigo Gonzalez, all rights reserved.
12+
%
13+
% This file is part of NaveGo, an open-source MATLAB toolbox for
14+
% simulation of integrated navigation systems.
15+
%
16+
% NaveGo is free software: you can redistribute it and/or modify
17+
% it under the terms of the GNU Lesser General Public License (LGPL)
18+
% version 3 as published by the Free Software Foundation.
19+
%
20+
% This program is distributed in the hope that it will be useful,
21+
% but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
% GNU Lesser General Public License for more details.
24+
%
25+
% You should have received a copy of the GNU Lesser General Public
26+
% License along with this program. If not, see
27+
% <http://www.gnu.org/licenses/>.
28+
%
29+
% References:
30+
%
31+
% Version: 001
32+
% Date: 2019/01/09
33+
% Author: Rodrigo Gonzalez <[email protected]>
34+
% URL: https://github.com/rodralez/navego
35+
36+
yaw_new = yaw;
37+
38+
idx = (yaw > pi);
39+
yaw_new(idx) = yaw(idx) - 2*pi;
40+
41+
idx = (yaw < -pi);
42+
yaw_new(idx) = yaw(idx) + 2*pi;
43+
44+
end

examples/alla-variance/navego_allan_example.m

Lines changed: 0 additions & 180 deletions
This file was deleted.

examples/alla-variance/stim300.mat

-33.1 MB
Binary file not shown.

0 commit comments

Comments
 (0)