From eb9b2bf4e9f1171ff99ba0290e17a23f4f246e15 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell <tridge@samba.org> Date: Tue, 25 Nov 2014 08:17:15 +1100 Subject: [PATCH] AP_Math: fixed build warning --- libraries/AP_Math/vector3.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_Math/vector3.cpp b/libraries/AP_Math/vector3.cpp index 28fe75798..8ec1634b0 100644 --- a/libraries/AP_Math/vector3.cpp +++ b/libraries/AP_Math/vector3.cpp @@ -222,12 +222,12 @@ void Vector3<T>::rotate(enum Rotation rotation) return; } case ROTATION_YAW_293_PITCH_68_ROLL_180: { - float tmp = x; + float tmpx = x; float tmpy = y; float tmpz = z; - x = 0.1430389f * tmp -0.9184465f * tmpy -0.3687762f * tmpz; - y = -0.3321327f * tmp -0.3955452f * tmpy +0.8562895f * tmpz; - z = -0.9323238f * tmp -0.00000003f * tmpy -0.3616245f * tmpz; + x = 0.1430389f * tmpx -0.9184465f * tmpy -0.3687762f * tmpz; + y = -0.3321327f * tmpx -0.3955452f * tmpy +0.8562895f * tmpz; + z = -0.9323238f * tmpx -0.00000003f * tmpy -0.3616245f * tmpz; return; } } -- GitLab