summaryrefslogtreecommitdiff
path: root/src/input_common/motion_input.h
diff options
context:
space:
mode:
authorGravatar Lioncash2020-10-14 02:51:14 -0400
committerGravatar Lioncash2020-10-15 19:37:51 -0400
commit046c0c91a3ed665531f20955e7cfb86fe5b73213 (patch)
tree94382af9cc339cf5f384f4d0c8938dd593b4e1c5 /src/input_common/motion_input.h
parentMerge pull request #4787 from lioncash/conversion (diff)
downloadyuzu-046c0c91a3ed665531f20955e7cfb86fe5b73213.tar.gz
yuzu-046c0c91a3ed665531f20955e7cfb86fe5b73213.tar.xz
yuzu-046c0c91a3ed665531f20955e7cfb86fe5b73213.zip
input_common/CMakeLists: Make some warnings errors
Makes the input_common code warnings consistent with the rest of the codebase.
Diffstat (limited to 'src/input_common/motion_input.h')
-rw-r--r--src/input_common/motion_input.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/input_common/motion_input.h b/src/input_common/motion_input.h
index 6342d0318..abb957f04 100644
--- a/src/input_common/motion_input.h
+++ b/src/input_common/motion_input.h
@@ -22,7 +22,7 @@ public:
22 MotionInput& operator=(MotionInput&&) = default; 22 MotionInput& operator=(MotionInput&&) = default;
23 23
24 void SetAcceleration(const Common::Vec3f& acceleration); 24 void SetAcceleration(const Common::Vec3f& acceleration);
25 void SetGyroscope(const Common::Vec3f& acceleration); 25 void SetGyroscope(const Common::Vec3f& gyroscope);
26 void SetQuaternion(const Common::Quaternion<f32>& quaternion); 26 void SetQuaternion(const Common::Quaternion<f32>& quaternion);
27 void SetGyroDrift(const Common::Vec3f& drift); 27 void SetGyroDrift(const Common::Vec3f& drift);
28 void SetGyroThreshold(f32 threshold); 28 void SetGyroThreshold(f32 threshold);
@@ -49,16 +49,16 @@ private:
49 void SetOrientationFromAccelerometer(); 49 void SetOrientationFromAccelerometer();
50 50
51 // PID constants 51 // PID constants
52 const f32 kp; 52 f32 kp;
53 const f32 ki; 53 f32 ki;
54 const f32 kd; 54 f32 kd;
55 55
56 // PID errors 56 // PID errors
57 Common::Vec3f real_error; 57 Common::Vec3f real_error;
58 Common::Vec3f integral_error; 58 Common::Vec3f integral_error;
59 Common::Vec3f derivative_error; 59 Common::Vec3f derivative_error;
60 60
61 Common::Quaternion<f32> quat; 61 Common::Quaternion<f32> quat{{0.0f, 0.0f, -1.0f}, 0.0f};
62 Common::Vec3f rotations; 62 Common::Vec3f rotations;
63 Common::Vec3f accel; 63 Common::Vec3f accel;
64 Common::Vec3f gyro; 64 Common::Vec3f gyro;