Copter: disable sonar on APM1 and TradHeli on APM2

This commit is contained in:
Randy Mackay 2014-10-07 14:13:35 +09:00
parent a1e707b7f9
commit 5891cd3078
1 changed files with 5 additions and 0 deletions

View File

@ -88,6 +88,11 @@
# define FRSKY_TELEM_ENABLED DISABLED # define FRSKY_TELEM_ENABLED DISABLED
#endif #endif
// disable sonar on APM1 and TradHeli/APM2
#if (CONFIG_HAL_BOARD == HAL_BOARD_APM1 || (CONFIG_HAL_BOARD == HAL_BOARD_APM2 && FRAME_CONFIG == HELI_FRAME))
# define CONFIG_SONAR DISABLED
#endif
#if HAL_CPU_CLASS < HAL_CPU_CLASS_75 || CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL #if HAL_CPU_CLASS < HAL_CPU_CLASS_75 || CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
// low power CPUs (APM1, APM2 and SITL) // low power CPUs (APM1, APM2 and SITL)
# define MAIN_LOOP_RATE 100 # define MAIN_LOOP_RATE 100