Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
artoa4argo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
argoTools
artoa4argo
Commits
998bbc93
Commit
998bbc93
authored
5 years ago
by
leprob001
Browse files
Options
Downloads
Patches
Plain Diff
Float drift is now being calculated if it is available in RFB file.
parent
7bb077af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VERSION
+1
-1
1 addition, 1 deletion
VERSION
lib/+artoa/+offsets/generateOffsetTable.m
+40
-15
40 additions, 15 deletions
lib/+artoa/+offsets/generateOffsetTable.m
with
41 additions
and
16 deletions
VERSION
+
1
−
1
View file @
998bbc93
125
126
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lib/+artoa/+offsets/generateOffsetTable.m
+
40
−
15
View file @
998bbc93
...
@@ -12,24 +12,49 @@ offsetTable = cell2table( ...
...
@@ -12,24 +12,49 @@ offsetTable = cell2table( ...
);
);
%% Setup rows
%% Setup rows
% float
offsetTable
.
Properties
.
RowNames
(
1
)
=
{
'Float'
};
offsetTable
.
Properties
.
RowNames
(
1
)
=
{
'Float'
};
try
floatOffsets
=
artoa
.
data
.
getMember
(
pFloatDetails
,
{
'offset'
},
false
);
offsetTable
{
1
,
variableNames
{
1
}}
=
artoa
.
convert
.
dmy2rd
(
pFloatDetails
.
offset
(
1
,
3
),
pFloatDetails
.
offset
(
1
,
2
),
pFloatDetails
.
offset
(
1
,
1
));
startDate
=
NaN
;
catch
endDate
=
NaN
;
end
startOffset
=
NaN
;
try
endOffset
=
NaN
;
offsetTable
{
1
,
variableNames
{
2
}}
=
pFloatDetails
.
offset
(
1
,
7
);
drift
=
NaN
;
catch
if
~
islogical
(
floatOffsets
)
end
sizeOffsets
=
size
(
floatOffsets
);
try
if
sizeOffsets
(
1
)
>=
1
&&
sizeOffsets
(
2
)
>=
3
% start date can be calculated
offsetTable
{
1
,
variableNames
{
3
}}
=
artoa
.
convert
.
dmy2rd
(
pFloatDetails
.
offset
(
2
,
3
),
pFloatDetails
.
offset
(
2
,
2
),
pFloatDetails
.
offset
(
2
,
1
));
startDate
=
artoa
.
convert
.
dmy2rd
(
...
catch
floatOffsets
(
1
,
3
),
...
end
floatOffsets
(
1
,
2
),
...
try
floatOffsets
(
1
,
1
)
...
offsetTable
{
1
,
variableNames
{
4
}}
=
pFloatDetails
.
offset
(
2
,
7
);
);
catch
end
if
sizeOffsets
(
1
)
>=
2
&&
sizeOffsets
(
2
)
>=
3
% end date can be calculated
endDate
=
artoa
.
convert
.
dmy2rd
(
...
floatOffsets
(
2
,
3
),
...
floatOffsets
(
2
,
2
),
...
floatOffsets
(
2
,
1
)
...
);
end
if
sizeOffsets
(
1
)
>=
1
&&
sizeOffsets
(
2
)
>=
7
% start offset can be stored
startOffset
=
floatOffsets
(
1
,
7
);
end
if
sizeOffsets
(
1
)
>=
2
&&
sizeOffsets
(
2
)
>=
7
% end offset can be stored and drift can be calculated
endOffset
=
floatOffsets
(
2
,
7
);
% calculate drift per day
drift
=
(
endOffset
-
startOffset
)
/
(
endDate
-
startDate
);
end
end
end
offsetTable
{
1
,
variableNames
{
1
}}
=
startDate
;
offsetTable
{
1
,
variableNames
{
2
}}
=
startOffset
;
offsetTable
{
1
,
variableNames
{
3
}}
=
endDate
;
offsetTable
{
1
,
variableNames
{
4
}}
=
endOffset
;
offsetTable
{
1
,
variableNames
{
5
}}
=
drift
;
clear
startDate
startOffset
endDate
endOffset
drift
;
if
nargin
==
1
if
nargin
==
1
return
;
return
;
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment