From 339845770c6bdfd6fd5d93ae6b88f723bf7f13fc Mon Sep 17 00:00:00 2001 From: jjulio1234 Date: Fri, 10 Dec 2010 19:06:14 +0000 Subject: [PATCH] Corrected default Magnetometer orientation git-svn-id: https://arducopter.googlecode.com/svn/trunk@1106 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArducopterNG/ArducopterNG.pde | 8 ++++---- ArducopterNG/GCS.pde | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ArducopterNG/ArducopterNG.pde b/ArducopterNG/ArducopterNG.pde index 369d27f3e6..5c207b54da 100644 --- a/ArducopterNG/ArducopterNG.pde +++ b/ArducopterNG/ArducopterNG.pde @@ -144,9 +144,9 @@ // Magneto orientation and corrections. // If you don't have magneto activated, It is safe to ignore these //#ifdef IsMAG -//#define MAGORIENTATION APM_COMPASS_COMPONENTS_UP_PINS_FORWARD // This is default solution for ArduCopter +#define MAGORIENTATION APM_COMPASS_COMPONENTS_UP_PINS_FORWARD // This is default solution for ArduCopter //#define MAGORIENTATION APM_COMPASS_COMPONENTS_UP_PINS_BACK // Alternative orientation for ArduCopter -#define MAGORIENTATION APM_COMPASS_COMPONENTS_DOWN_PINS_FORWARD // If you have soldered Magneto to IMU shield in WIki pictures shows +//#define MAGORIENTATION APM_COMPASS_COMPONENTS_DOWN_PINS_FORWARD // If you have soldered Magneto to IMU shield in WIki pictures shows // To get Magneto offsets, switch to CLI mode and run offset calibration. During calibration // you need to roll/bank/tilt/yaw/shake etc your ArduCopter. Don't kick like Jani always does :) @@ -158,7 +158,7 @@ // Declination is a correction factor between North Pole and real magnetic North. This is different on every location // IF you want to use really accurate headholding and future navigation features, you should update this // You can check Declination to your location from http://www.magnetic-declination.com/ -#define DECLINATION 0.00 +#define DECLINATION 0.0 //#define DECLINATION 0.61 @@ -509,4 +509,4 @@ void loop() } - + diff --git a/ArducopterNG/GCS.pde b/ArducopterNG/GCS.pde index 197d1e69d8..e7b270a7d0 100644 --- a/ArducopterNG/GCS.pde +++ b/ArducopterNG/GCS.pde @@ -518,4 +518,4 @@ float readFloatSerial() { return atof(data); } - +