From a627cd2af234f1dcf43496d88d592e70866f75ee Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 19 Aug 2014 19:42:33 +1000 Subject: [PATCH] Copter: run Linux boards at 100Hz for now we should be able to do 400Hz in future --- ArduCopter/config.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ArduCopter/config.h b/ArduCopter/config.h index eae4043fc8..5d03adf18c 100644 --- a/ArduCopter/config.h +++ b/ArduCopter/config.h @@ -86,16 +86,11 @@ # define AC_RALLY 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 || CONFIG_HAL_BOARD == HAL_BOARD_LINUX // low power CPUs (APM1, APM2 and SITL) # define MAIN_LOOP_RATE 100 # define MAIN_LOOP_SECONDS 0.01 # define MAIN_LOOP_MICROS 10000 -#elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX - // Linux boards - # define MAIN_LOOP_RATE 200 - # define MAIN_LOOP_SECONDS 0.005 - # define MAIN_LOOP_MICROS 5000 #else // high power CPUs (Flymaple, PX4, Pixhawk, VRBrain) # define MAIN_LOOP_RATE 400