Browse Source

AP_NavEKF: enable optimisation in Linux build

only really need debugging for SITL
mission-4.1.18
Andrew Tridgell 10 years ago
parent
commit
4586de6637
  1. 8
      libraries/AP_NavEKF/AP_NavEKF.cpp

8
libraries/AP_NavEKF/AP_NavEKF.cpp

@ -4,9 +4,11 @@ @@ -4,9 +4,11 @@
#if HAL_CPU_CLASS >= HAL_CPU_CLASS_150
// uncomment this to force the optimisation of this code, note that
// this makes debugging harder
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX
/*
turn down optimisation on SITL to make debugging easier. We are not
short of CPU in SITL.
*/
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
#pragma GCC optimize("O0")
#else
#pragma GCC optimize("O3")

Loading…
Cancel
Save