mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 08:38:36 -04:00
AP_NavEKF: allow for optimisation of the EKF
disable optimisation when debugging needed
This commit is contained in:
parent
eb284b4fca
commit
ce0a863d01
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user