AP_NavEKF: only build on fast CPUs

This commit is contained in:
Andrew Tridgell 2013-12-31 10:24:21 +11:00
parent 1647ba9bd0
commit 4adf6000f3

View File

@ -2,6 +2,8 @@
#include <AP_HAL.h> #include <AP_HAL.h>
#if HAL_CPU_CLASS >= HAL_CPU_CLASS_150
// uncomment this to force the optimisation of this code, note that // uncomment this to force the optimisation of this code, note that
// this makes debugging harder // this makes debugging harder
// #pragma GCC optimize("O3") // #pragma GCC optimize("O3")
@ -2011,3 +2013,5 @@ void NavEKF::calcEarthRateNED(Vector3f &omega, float latitude)
omega.y = 0; omega.y = 0;
omega.z = -earthRate*sinf(latitude); omega.z = -earthRate*sinf(latitude);
} }
#endif // HAL_CPU_CLASS