AP_NavEKF: allow for optimisation of the EKF

disable optimisation when debugging needed
This commit is contained in:
Andrew Tridgell 2015-05-02 21:55:43 +10:00
parent eb284b4fca
commit ce0a863d01

View File

@ -5,14 +5,9 @@
#if HAL_CPU_CLASS >= HAL_CPU_CLASS_150
/*
turn down optimisation on SITL to make debugging easier. We are not
short of CPU in SITL.
optionally turn down optimisation for debugging
*/
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
#pragma GCC optimize("O0")
#else
#pragma GCC optimize("O3")
#endif
// #pragma GCC optimize("O0")
#include "AP_NavEKF.h"
#include <AP_AHRS.h>