mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
SITL: abort on floating point error
this creates a core file
This commit is contained in:
parent
e49cd68b83
commit
f04f8e226d
@ -80,7 +80,7 @@ bool SITL_State::new_rc_input;
|
|||||||
void SITL_State::_sig_fpe(int signum)
|
void SITL_State::_sig_fpe(int signum)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: Floating point exception\n");
|
fprintf(stderr, "ERROR: Floating point exception\n");
|
||||||
exit(1);
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SITL_State::_usage(void)
|
void SITL_State::_usage(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user