diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 56145e0154..a66b56b809 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1365,7 +1365,7 @@ void Application::updateAvatar(float deltaTime) { const float VERTICAL_PIXELS_PER_DEGREE = 1800.f / 30.f; if (powf(measuredYawRate * measuredYawRate + measuredPitchRate * measuredPitchRate, 0.5) > MIN_MOUSE_RATE) { - _headMouseX += measuredYawRate * HORIZONTAL_PIXELS_PER_DEGREE * deltaTime; + _headMouseX -= measuredYawRate * HORIZONTAL_PIXELS_PER_DEGREE * deltaTime; _headMouseY -= measuredPitchRate * VERTICAL_PIXELS_PER_DEGREE * deltaTime; } _headMouseX = max(_headMouseX, 0); diff --git a/interface/src/SerialInterface.cpp b/interface/src/SerialInterface.cpp index 233a004568..1989736bf8 100644 --- a/interface/src/SerialInterface.cpp +++ b/interface/src/SerialInterface.cpp @@ -203,8 +203,8 @@ void SerialInterface::readData() { // Convert the integer rates to floats const float LSB_TO_DEGREES_PER_SECOND = 1.f / 16.4f; // From MPU-9150 register map, 2000 deg/sec. - _lastRollRate = ((float) rollRate) * LSB_TO_DEGREES_PER_SECOND; - _lastYawRate = ((float) yawRate) * LSB_TO_DEGREES_PER_SECOND; + _lastRollRate = ((float) -rollRate) * LSB_TO_DEGREES_PER_SECOND; + _lastYawRate = ((float) -yawRate) * LSB_TO_DEGREES_PER_SECOND; _lastPitchRate = ((float) -pitchRate) * LSB_TO_DEGREES_PER_SECOND; // Accumulate a set of initial baseline readings for setting gravity