Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
labrobotica
drivers
asterx1_gps
Commits
7d9ab37d
Commit
7d9ab37d
authored
Mar 07, 2016
by
Sergi Hernandez
Browse files
Changes to try to catch an unhandled GPSTK exception.
parent
ac90358c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/asterx1_process.cpp
View file @
7d9ab37d
...
...
@@ -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
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment