From 7c4c8ea579c1f671e2710bee5c5e01e44c2fb86a Mon Sep 17 00:00:00 2001 From: dgrat Date: Thu, 25 Feb 2016 18:23:41 +0100 Subject: [PATCH] AP_Math: Remove ROTATION_COMBINATION_SUPPORT This function is not used. --- libraries/AP_Math/AP_Math.cpp | 36 ----------------------------------- libraries/AP_Math/AP_Math.h | 7 ------- 2 files changed, 43 deletions(-) diff --git a/libraries/AP_Math/AP_Math.cpp b/libraries/AP_Math/AP_Math.cpp index d38be45c1a..07dbe4c9b8 100644 --- a/libraries/AP_Math/AP_Math.cpp +++ b/libraries/AP_Math/AP_Math.cpp @@ -32,41 +32,5 @@ float safe_sqrt(float v) return ret; } -#if ROTATION_COMBINATION_SUPPORT -// find a rotation that is the combination of two other -// rotations. This is used to allow us to add an overall board -// rotation to an existing rotation of a sensor such as the compass -// Note that this relies the set of rotations being complete. The -// optional 'found' parameter is for the test suite to ensure that it is. -enum Rotation rotation_combination(enum Rotation r1, enum Rotation r2, bool *found) -{ - Vector3f tv1, tv2; - enum Rotation r; - tv1(1,2,3); - tv1.rotate(r1); - tv1.rotate(r2); - - for (r=ROTATION_NONE; r