From dc410a4b42254f94bf6d6f94bf86055b6d3dd0db Mon Sep 17 00:00:00 2001 From: Staroselskii Georgii Date: Fri, 21 Nov 2014 19:29:28 +0300 Subject: [PATCH] Plane: added AK8963 support --- ArduPlane/ArduPlane.pde | 2 ++ ArduPlane/setup.pde | 3 +++ 2 files changed, 5 insertions(+) diff --git a/ArduPlane/ArduPlane.pde b/ArduPlane/ArduPlane.pde index 8a08e83bdb..b4a6a798b0 100644 --- a/ArduPlane/ArduPlane.pde +++ b/ArduPlane/ArduPlane.pde @@ -217,6 +217,8 @@ static AP_Compass_VRBRAIN compass; static AP_Compass_HMC5843 compass; #elif CONFIG_COMPASS == HAL_COMPASS_HIL static AP_Compass_HIL compass; +#elif CONFIG_COMPASS == HAL_COMPASS_AK8963 +static AP_Compass_AK8963_MPU9250 compass; #else #error Unrecognized CONFIG_COMPASS setting #endif diff --git a/ArduPlane/setup.pde b/ArduPlane/setup.pde index 7d5fff56eb..9f12acb172 100644 --- a/ArduPlane/setup.pde +++ b/ArduPlane/setup.pde @@ -385,6 +385,9 @@ static void report_compass() case AP_COMPASS_TYPE_VRBRAIN: cliSerial->println_P(PSTR("VRBRAIN")); break; + case AP_COMPASS_TYPE_AK8963_MPU9250: + cliSerial->println_P(PSTR("AK8963_MPU9250")); + break; default: cliSerial->println_P(PSTR("(unknown)")); break;