From 8d1085feeac24cbe72a63ca960b1f0ce55101a95 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Wed, 9 Oct 2013 14:10:16 +0900 Subject: [PATCH] Copter: pre-arm expects mag len of 330 for APM1 (was 530) --- ArduCopter/config.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ArduCopter/config.h b/ArduCopter/config.h index 32c59d0818..05065cf2e9 100644 --- a/ArduCopter/config.h +++ b/ArduCopter/config.h @@ -400,13 +400,13 @@ #endif // expected magnetic field strength. pre-arm checks will fail if 50% higher or lower than this value -#if CONFIG_HAL_BOARD == HAL_BOARD_APM2 +#if CONFIG_HAL_BOARD == HAL_BOARD_APM1 || CONFIG_HAL_BOARD == HAL_BOARD_APM2 #ifndef COMPASS_MAGFIELD_EXPECTED - # define COMPASS_MAGFIELD_EXPECTED 330 // pre arm will fail if mag field > 495 or < 165 + # define COMPASS_MAGFIELD_EXPECTED 330 // pre arm will fail if mag field > 544 or < 115 #endif -#else // APM1, PX4, SITL +#else // PX4, SITL #ifndef COMPASS_MAGFIELD_EXPECTED - #define COMPASS_MAGFIELD_EXPECTED 530 // pre arm will fail if mag field > 795 or < 265 + #define COMPASS_MAGFIELD_EXPECTED 530 // pre arm will fail if mag field > 874 or < 185 #endif #endif