summaryrefslogtreecommitdiffstats
path: root/src/input_common/motion_input.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-01-02 15:00:05 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-01-02 16:23:41 +0100
commita745d87971b2c9795e1b2c587bfe30b849b522fa (patch)
tree61fb7dc24ebbf6e679deeba05278c5380cb35025 /src/input_common/motion_input.cpp
parentMerge pull request #5209 from Morph1984/refactor-controller-connect (diff)
downloadyuzu-a745d87971b2c9795e1b2c587bfe30b849b522fa.tar
yuzu-a745d87971b2c9795e1b2c587bfe30b849b522fa.tar.gz
yuzu-a745d87971b2c9795e1b2c587bfe30b849b522fa.tar.bz2
yuzu-a745d87971b2c9795e1b2c587bfe30b849b522fa.tar.lz
yuzu-a745d87971b2c9795e1b2c587bfe30b849b522fa.tar.xz
yuzu-a745d87971b2c9795e1b2c587bfe30b849b522fa.tar.zst
yuzu-a745d87971b2c9795e1b2c587bfe30b849b522fa.zip
Diffstat (limited to 'src/input_common/motion_input.cpp')
-rw-r--r--src/input_common/motion_input.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_common/motion_input.cpp b/src/input_common/motion_input.cpp
index f77ba535d..6a65f175e 100644
--- a/src/input_common/motion_input.cpp
+++ b/src/input_common/motion_input.cpp
@@ -129,7 +129,7 @@ void MotionInput::UpdateOrientation(u64 elapsed_time) {
rad_gyro += ki * integral_error;
rad_gyro += kd * derivative_error;
} else {
- // Give more weight to acelerometer values to compensate for the lack of gyro
+ // Give more weight to accelerometer values to compensate for the lack of gyro
rad_gyro += 35.0f * kp * real_error;
rad_gyro += 10.0f * ki * integral_error;
rad_gyro += 10.0f * kd * derivative_error;