Skip to content
Snippets Groups Projects
Commit 7d9ab37d authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Changes to try to catch an unhandled GPSTK exception.

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