Copter: remove unused definitions

This commit is contained in:
Randy Mackay 2015-12-02 14:56:24 +09:00
parent f60f0e80c3
commit d9baf334c4

View File

@ -52,10 +52,8 @@
#endif
#if HIL_MODE != HIL_MODE_DISABLED // we are in HIL mode
#undef CONFIG_BARO
#define CONFIG_BARO HAL_BARO_HIL
#undef CONFIG_COMPASS
#define CONFIG_COMPASS HAL_COMPASS_HIL
#undef CONFIG_SONAR
#define CONFIG_SONAR DISABLED
#endif
#define MAGNETOMETER ENABLED
@ -145,14 +143,6 @@
# define RC_FAST_SPEED 490
#endif
//////////////////////////////////////////////////////////////////////////////
// Barometer
//
#ifndef CONFIG_BARO
# define CONFIG_BARO AP_BARO_BMP085
#endif
//////////////////////////////////////////////////////////////////////////////
// Sonar
//
@ -185,20 +175,6 @@
# define SONAR_TILT_CORRECTION DISABLED
#endif
//////////////////////////////////////////////////////////////////////////////
// HIL_MODE OPTIONAL
#ifndef HIL_MODE
#define HIL_MODE HIL_MODE_DISABLED
#endif
#if HIL_MODE != HIL_MODE_DISABLED // we are in HIL mode
#undef CONFIG_SONAR
#define CONFIG_SONAR DISABLED
#endif
#ifndef MAV_SYSTEM_ID
# define MAV_SYSTEM_ID 1