summaryrefslogtreecommitdiffstats
path: root/src/core/hid/motion_input.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-12-21 09:13:54 +0100
committerGitHub <noreply@github.com>2021-12-21 09:13:54 +0100
commit5e24f7ed3106542838a557dd2cc872e7e338fbb5 (patch)
treeac773436f7767a0d5c6c411f0717269cbd19f29a /src/core/hid/motion_input.h
parentMerge pull request #7609 from Tatsh/file-assoc (diff)
parentservice/hid: Improve console motion accuracy (diff)
downloadyuzu-5e24f7ed3106542838a557dd2cc872e7e338fbb5.tar
yuzu-5e24f7ed3106542838a557dd2cc872e7e338fbb5.tar.gz
yuzu-5e24f7ed3106542838a557dd2cc872e7e338fbb5.tar.bz2
yuzu-5e24f7ed3106542838a557dd2cc872e7e338fbb5.tar.lz
yuzu-5e24f7ed3106542838a557dd2cc872e7e338fbb5.tar.xz
yuzu-5e24f7ed3106542838a557dd2cc872e7e338fbb5.tar.zst
yuzu-5e24f7ed3106542838a557dd2cc872e7e338fbb5.zip
Diffstat (limited to 'src/core/hid/motion_input.h')
-rw-r--r--src/core/hid/motion_input.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hid/motion_input.h b/src/core/hid/motion_input.h
index 5b5b420bb..bca4520fa 100644
--- a/src/core/hid/motion_input.h
+++ b/src/core/hid/motion_input.h
@@ -24,7 +24,7 @@ public:
void SetAcceleration(const Common::Vec3f& acceleration);
void SetGyroscope(const Common::Vec3f& gyroscope);
void SetQuaternion(const Common::Quaternion<f32>& quaternion);
- void SetGyroDrift(const Common::Vec3f& drift);
+ void SetGyroBias(const Common::Vec3f& bias);
void SetGyroThreshold(f32 threshold);
void EnableReset(bool reset);
@@ -36,6 +36,7 @@ public:
[[nodiscard]] std::array<Common::Vec3f, 3> GetOrientation() const;
[[nodiscard]] Common::Vec3f GetAcceleration() const;
[[nodiscard]] Common::Vec3f GetGyroscope() const;
+ [[nodiscard]] Common::Vec3f GetGyroBias() const;
[[nodiscard]] Common::Vec3f GetRotations() const;
[[nodiscard]] Common::Quaternion<f32> GetQuaternion() const;
@@ -69,7 +70,7 @@ private:
Common::Vec3f gyro;
// Vector to be substracted from gyro measurements
- Common::Vec3f gyro_drift;
+ Common::Vec3f gyro_bias;
// Minimum gyro amplitude to detect if the device is moving
f32 gyro_threshold = 0.0f;