Commit 7d9ab37d authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Changes to try to catch an unhandled GPSTK exception.

parent ac90358c
......@@ -60,12 +60,12 @@ void CAsteRx1Process::generate_gps_nav(gpstk::EngEphemeris &ephemeris,TGPSNav &g
gps_nav.wnt_oe=gps_epoch.GPSModWeek();
}catch(gpstk::InvalidParameter &e){
/* ignore the Error for including subframes 4 and 5 */
//std::cout << e.what() << std::endl;
std::cout << "generate GPS NAV" << e.what() << std::endl;
}catch(gpstk::InvalidRequest &e){
/* this should not happen */
//std::cout << e.what() << std::endl;
std::cout << "generate GPS NAV" << e.what() << std::endl;
}catch(...){
std::cout << "Exception" << std::endl;
std::cout << "generate GPS NAV Exception" << std::endl;
}
}
......@@ -117,10 +117,12 @@ void CAsteRx1Process::add_subframe(TGPSFrame &frame)
}
}catch(gpstk::InvalidParameter &e){
/* ignore the Error for including subframes 4 and 5 */
//std::cout << e.what() << std::endl;
std::cout << "add subframe" << e.what() << std::endl;
}catch(gpstk::InvalidRequest &e){
/* this should not happen */
//std::cout << e.what() << std::endl;
std::cout << "add subframe" << e.what() << std::endl;
}catch(...){
std::cout << "add subframe Exception" << std::endl;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment