Skip to content
Snippets Groups Projects
Unverified Commit 1e155f3c authored by Kelvin Rodriguez's avatar Kelvin Rodriguez Committed by GitHub
Browse files

SCLK Bug fixes (#44)

* fixed bug where cks were using interval scope

* fixed sclk bugs
parent 384910e1
Branches
Tags
No related merge requests found
...@@ -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" : {
......
...@@ -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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment