-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathcompute_fixrate.m
More file actions
38 lines (30 loc) · 978 Bytes
/
compute_fixrate.m
File metadata and controls
38 lines (30 loc) · 978 Bytes
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
%% compute_fixrate.m
% Compute ambiguity fixed rate from RTK-GNSS solution
% Author: Taro Suzuki
clear; close all; clc;
addpath ../
basepath = "./data/kinematic/";
%% Read RTKLIB solution file
gsol = gt.Gsol(basepath+"rover_rtk.pos");
%% Check solution time interval
% Solution contains many missing epochs
gsol.time.plotDiff();
fprintf("Time interval of solution is not constant (including missing): nepoch=%d\n",gsol.n);
% Status rate/count
disp(gt.C.SOLQNAME(1:7));
disp(gsol.statRate);
disp(gsol.statCount);
% This is incorrect fixed rate
gsol.showStatRate;
gsol.showFixRate;
%% Create solution for fixed time interval (insert NaN)
gsol_fixed = gsol.fixedInterval();
gsol_fixed.time.plotDiff(); ylim([0 1]);
fprintf("\n\nTime interval of solution is constant: nepoch=%d\n",gsol_fixed.n);
% Status rate/count
disp(gt.C.SOLQNAME(1:7));
disp(gsol_fixed.statRate);
disp(gsol_fixed.statCount);
% This is correct fixed rate
gsol_fixed.showStatRate;
gsol_fixed.showFixRate;