Skip to content
Snippets Groups Projects
Unverified Commit a3e2b23b authored by Makayla Shepherd's avatar Makayla Shepherd Committed by GitHub
Browse files

Merge pull request #524 from kberryUSGS/tgo_frame_fix

Update CaSSIS camera to work correctly with ckwriter and jigsaw to output a non-zero exit status when the bundle does not converge, but update was set to yes. Fixes #5534 and #5522.
parents d8d94684 b98cd97a
No related branches found
No related tags found
No related merge requests found
......@@ -109,6 +109,8 @@ void IsisMain() {
if (ui.GetBoolean("UPDATE") ) {
if ( !bundleAdjustment->isConverged() ) {
gp += PvlKeyword("Status","Bundle did not converge, camera pointing NOT updated");
QString msg = "Bundle did not converge within MAXITS [" + toString(ui.GetInteger("MAXITS")) + "] iterations [" + cnetFile + "]";
throw IException(IException::Unknown, msg, _FILEINFO_);
}
else {
for (int i = 0; i < bundleAdjustment->numberOfImages(); i++) {
......
......@@ -66,7 +66,7 @@ namespace Isis {
const PvlGroup &inst = lab.findGroup("Instrument", Pvl::Traverse);
// Set up the camera characteristics
instrumentRotation()->SetFrame( CkFrameId() );
instrumentRotation()->SetFrame(-143420);
SetFocalLength();
SetPixelPitch();
......@@ -165,7 +165,7 @@ namespace Isis {
* Kernel Frame ID.
*/
int TgoCassisCamera::CkFrameId() const {
return (-143420);
return (-143000);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment