[ins] add warning if obsolete INS_BARO_SENS is defined

This commit is contained in:
Felix Ruess
2014-03-06 11:59:31 +01:00
parent a23aa37eb5
commit f81ae547d8
+7 -4
View File
@@ -74,6 +74,11 @@
#define VFF_R_SONAR_0 0.1
#define VFF_R_SONAR_OF_M 0.2
#ifndef INS_SONAR_UPDATE_ON_AGL
#define INS_SONAR_UPDATE_ON_AGL FALSE
PRINT_CONFIG_MSG("INS_SONAR_UPDATE_ON_AGL defaulting to FALSE")
#endif
#endif // USE_SONAR
#ifndef USE_INS_NAV_INIT
@@ -81,12 +86,10 @@
PRINT_CONFIG_MSG("USE_INS_NAV_INIT defaulting to TRUE")
#endif
#ifndef INS_SONAR_UPDATE_ON_AGL
#define INS_SONAR_UPDATE_ON_AGL FALSE
PRINT_CONFIG_MSG("INS_SONAR_UPDATE_ON_AGL defaulting to FALSE")
#ifdef INS_BARO_SENS
#warning INS_BARO_SENS is obsolete, please remove it from your airframe file.
#endif
/** default barometer to use in INS */
#ifndef INS_BARO_ID
#define INS_BARO_ID BARO_BOARD_SENDER_ID