AP_NavEKF: use APM_BUILD_TYPE() macro

This commit is contained in:
Andrew Tridgell 2014-03-26 12:42:11 +11:00
parent fbec098e2f
commit bafc664750

View File

@ -25,11 +25,11 @@
where the code is built. Note that this trick won't work for arduino
builds on APM2, but NavEKF doesn't run on APM2, so that's OK
*/
#if APM_BUILD_DIRECTORY == APM_BUILD_ArduCopter
#if APM_BUILD_TYPE(APM_BUILD_ArduCopter)
// copter defaults
#define VELNE_NOISE_DEFAULT 0.30f
#elif APM_BUILD_DIRECTORY == APM_BUILD_APMrover2
#elif APM_BUILD_TYPE(APM_BUILD_APMrover2)
// rover defaults
#define VELNE_NOISE_DEFAULT 0.30f