From a855e67b1ad6e5c9fb745fbc145c1a9d0309d098 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Tue, 5 Jun 2018 15:46:33 -0500 Subject: [PATCH] Use rs angle used for RY --- DS4Windows/DS4Library/DS4State.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DS4Windows/DS4Library/DS4State.cs b/DS4Windows/DS4Library/DS4State.cs index 66982eb..26d7cbe 100644 --- a/DS4Windows/DS4Library/DS4State.cs +++ b/DS4Windows/DS4Library/DS4State.cs @@ -166,7 +166,7 @@ namespace DS4Windows rsangle = (rsangle >= 0 ? rsangle : (2 * Math.PI + rsangle)) * 180 / Math.PI; RSAngle = rsangle; RXUnit = Math.Abs(Math.Cos(RSAngleRad)); - RYUnit = Math.Abs(Math.Sin(LSAngleRad)); + RYUnit = Math.Abs(Math.Sin(RSAngleRad)); } public void rotateLSCoordinates(double rotation)