Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SpiceQL
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
aflab
astrogeology
SpiceQL
Commits
1e155f3c
Unverified
Commit
1e155f3c
authored
7 months ago
by
Kelvin Rodriguez
Committed by
GitHub
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
SCLK Bug fixes (#44)
* fixed bug where cks were using interval scope * fixed sclk bugs
parent
384910e1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
SpiceQL/db/mess.json
+3
-2
3 additions, 2 deletions
SpiceQL/db/mess.json
SpiceQL/src/spice_types.cpp
+12
-7
12 additions, 7 deletions
SpiceQL/src/spice_types.cpp
with
15 additions
and
9 deletions
SpiceQL/db/mess.json
+
3
−
2
View file @
1e155f3c
...
@@ -30,14 +30,15 @@
...
@@ -30,14 +30,15 @@
"kernels"
:
"pck00010_msgr_v[0-9]{2}.tpc"
"kernels"
:
"pck00010_msgr_v[0-9]{2}.tpc"
}
}
},
},
"deps"
:
[
"/mdis_att"
,
"/messenger"
]
"deps"
:
[
"/mdis_att"
]
},
},
"mdis_att"
:
{
"mdis_att"
:
{
"ck"
:
{
"ck"
:
{
"reconstructed"
:
{
"reconstructed"
:
{
"kernels"
:
"msgr_mdis_sc[0-9]{6}_[0-9]{6}_sub_v[0-9]{1}.bc"
"kernels"
:
"msgr_mdis_sc[0-9]{6}_[0-9]{6}_sub_v[0-9]{1}.bc"
}
}
}
},
"deps"
:
[
"/messenger"
]
},
},
"messenger"
:
{
"messenger"
:
{
"ck"
:
{
"ck"
:
{
...
...
This diff is collapsed.
Click to expand it.
SpiceQL/src/spice_types.cpp
+
12
−
7
View file @
1e155f3c
...
@@ -236,15 +236,20 @@ namespace SpiceQL {
...
@@ -236,15 +236,20 @@ namespace SpiceQL {
KernelSet
sclkSet
(
sclks
);
KernelSet
sclkSet
(
sclks
);
KernelSet
lskSet
(
lsks
);
KernelSet
lskSet
(
lsks
);
// we want the platforms code, if they passs in an instrument code (e.g. -85600), truncate it to (-85)
frameCode
=
(
abs
(
frameCode
/
1000
)
>
0
)
?
frameCode
/
1000
:
frameCode
;
SpiceDouble
et
;
SpiceDouble
et
;
checkNaifErrors
();
checkNaifErrors
();
try
{
scs2e_c
(
frameCode
,
sclk
.
c_str
(),
&
et
);
scs2e_c
(
frameCode
,
sclk
.
c_str
(),
&
et
);
checkNaifErrors
();
checkNaifErrors
();
SPDLOG_DEBUG
(
"strsclktoet({}, {}, {}) -> {}"
,
frameCode
,
mission
,
sclk
,
et
);
SPDLOG_DEBUG
(
"strsclktoet({}, {}, {}) -> {}"
,
frameCode
,
mission
,
sclk
,
et
);
}
catch
(
exception
&
e
)
{
// we want the platforms code, if they passs in an instrument code (e.g. -85600), truncate it to (-85)
frameCode
=
(
abs
(
frameCode
/
1000
)
>
0
)
?
frameCode
/
1000
:
frameCode
;
scs2e_c
(
frameCode
,
sclk
.
c_str
(),
&
et
);
checkNaifErrors
();
SPDLOG_DEBUG
(
"strsclktoet({}, {}, {}) -> {}"
,
frameCode
,
mission
,
sclk
,
et
);
}
return
et
;
return
et
;
}
}
...
...
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