Move away from FrameAnimation, update camera orientation as soon as new IMU data is received

This commit is contained in:
wheaney 2025-09-03 10:14:40 -07:00
parent 78a6487a5c
commit 2b85ba5e3a
1 changed files with 8 additions and 12 deletions

View File

@ -67,10 +67,7 @@ Item {
onDisplayResolutionChanged: updateFOV(); onDisplayResolutionChanged: updateFOV();
onDiagonalFOVChanged: updateFOV(); onDiagonalFOVChanged: updateFOV();
onImuRotationsChanged: {
FrameAnimation {
running: true
onTriggered: {
if (root.imuRotations && root.imuRotations.length > 0) { if (root.imuRotations && root.imuRotations.length > 0) {
updateCamera(applyLookAhead( updateCamera(applyLookAhead(
root.imuRotations[0], root.imuRotations[0],
@ -80,5 +77,4 @@ Item {
)); ));
} }
} }
}
} }