mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 06:54:49 +08:00
[ins] add warning if obsolete INS_BARO_SENS is defined
This commit is contained in:
@@ -74,6 +74,11 @@
|
|||||||
#define VFF_R_SONAR_0 0.1
|
#define VFF_R_SONAR_0 0.1
|
||||||
#define VFF_R_SONAR_OF_M 0.2
|
#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
|
#endif // USE_SONAR
|
||||||
|
|
||||||
#ifndef USE_INS_NAV_INIT
|
#ifndef USE_INS_NAV_INIT
|
||||||
@@ -81,12 +86,10 @@
|
|||||||
PRINT_CONFIG_MSG("USE_INS_NAV_INIT defaulting to TRUE")
|
PRINT_CONFIG_MSG("USE_INS_NAV_INIT defaulting to TRUE")
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef INS_SONAR_UPDATE_ON_AGL
|
#ifdef INS_BARO_SENS
|
||||||
#define INS_SONAR_UPDATE_ON_AGL FALSE
|
#warning INS_BARO_SENS is obsolete, please remove it from your airframe file.
|
||||||
PRINT_CONFIG_MSG("INS_SONAR_UPDATE_ON_AGL defaulting to FALSE")
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/** default barometer to use in INS */
|
/** default barometer to use in INS */
|
||||||
#ifndef INS_BARO_ID
|
#ifndef INS_BARO_ID
|
||||||
#define INS_BARO_ID BARO_BOARD_SENDER_ID
|
#define INS_BARO_ID BARO_BOARD_SENDER_ID
|
||||||
|
|||||||
Reference in New Issue
Block a user