Explorar o código

core/hid: Set minimum gyro threshold

german77 %!s(int64=4) %!d(string=hai) anos
pai
achega
50a7152941
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/core/hid/motion_input.cpp

+ 1 - 0
src/core/hid/motion_input.cpp

@@ -10,6 +10,7 @@ namespace Core::HID {
 MotionInput::MotionInput() {
 MotionInput::MotionInput() {
     // Initialize PID constants with default values
     // Initialize PID constants with default values
     SetPID(0.3f, 0.005f, 0.0f);
     SetPID(0.3f, 0.005f, 0.0f);
+    SetGyroThreshold(0.001f);
 }
 }
 
 
 void MotionInput::SetPID(f32 new_kp, f32 new_ki, f32 new_kd) {
 void MotionInput::SetPID(f32 new_kp, f32 new_ki, f32 new_kd) {