Merge branch 'Integration' into ds5

emulated gyro fix
This commit is contained in:
True Zhuanjia committed 2026-08-17 17:43:23 +08:00
commit 5bd938abc5
1 file changed
+1
+1
View File
@@ -2083,6 +2083,7 @@ double rc_expo(double x, double expo) {
// Stop all timers to ensure a clean slate before applying the new setting. // Stop all timers to ensure a clean slate before applying the new setting.
[self stopTimerForAllControllers]; [self stopTimerForAllControllers];
_gyroEnabledFlag = _gyroMode != GyroModeOff && tempSettings.emulatedControllerType.intValue == LI_CTYPE_PS;
switch(_gyroMode) { switch(_gyroMode) {
case AlwaysController: case AlwaysController:
// Activate timers only for physical controllers. // Activate timers only for physical controllers.