[Stay Aligned] Fix broken tracker rotations (#1669)

This commit is contained in:
jabberrock
2025-12-11 04:26:12 -08:00
committed by GitHub
parent 2c6708bfe7
commit 5a42426048

View File

@@ -316,7 +316,7 @@ class Tracker @JvmOverloads constructor(
rot = Quaternion.rotationAroundYAxis(stayAligned.yawCorrection.toRad()) * rot
// Reset if needed and is not computed and internal
return if (needReset && !(isComputed && isInternal) && trackerDataType == TrackerDataType.ROTATION) {
return if (allowReset && !(isComputed && isInternal) && trackerDataType == TrackerDataType.ROTATION) {
// Adjust to reset, mounting and drift compensation
resetsHandler.getReferenceAdjustedDriftRotationFrom(rot)
} else {