Skip to content

Commit

Permalink
Mission Specific PCK loading Fix (#5335)
Browse files Browse the repository at this point in the history
* Allow the kernel db loading to fall back on base

* Fixed small comment typo
  • Loading branch information
acpaquette authored Nov 13, 2023
1 parent c2197f7 commit 6764514
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions isis/src/system/objs/KernelDb/KernelDb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -740,11 +740,12 @@ namespace Isis {
// Load the leapsecond DB
loadKernelDbFiles(dataDir, baseDir + "/kernels/lsk", lab);
// Load the target attitude shape DB
FileName tasDbPath(missionDir + "/kernels/pck");
if (tasDbPath.fileExists()) {
// Try to get mission specific pck data, if that
// fails, fallback to the base pck data
try {
loadKernelDbFiles(dataDir, missionDir + "/kernels/pck", lab);
}
else {
catch (IException &e) {
loadKernelDbFiles(dataDir, baseDir + "/kernels/pck", lab);
}
// Load the target position DB
Expand Down

0 comments on commit 6764514

Please sign in to comment.