Move away from FrameAnimation, update camera orientation as soon as new IMU data is received
This commit is contained in:
parent
78a6487a5c
commit
2b85ba5e3a
|
|
@ -67,18 +67,14 @@ Item {
|
||||||
|
|
||||||
onDisplayResolutionChanged: updateFOV();
|
onDisplayResolutionChanged: updateFOV();
|
||||||
onDiagonalFOVChanged: updateFOV();
|
onDiagonalFOVChanged: updateFOV();
|
||||||
|
onImuRotationsChanged: {
|
||||||
FrameAnimation {
|
if (root.imuRotations && root.imuRotations.length > 0) {
|
||||||
running: true
|
updateCamera(applyLookAhead(
|
||||||
onTriggered: {
|
root.imuRotations[0],
|
||||||
if (root.imuRotations && root.imuRotations.length > 0) {
|
root.imuRotations[1],
|
||||||
updateCamera(applyLookAhead(
|
root.imuTimeElapsedMs,
|
||||||
root.imuRotations[0],
|
lookAheadMS(root.imuTimestamp, root.lookAheadConfig, -1)
|
||||||
root.imuRotations[1],
|
));
|
||||||
root.imuTimeElapsedMs,
|
|
||||||
lookAheadMS(root.imuTimestamp, root.lookAheadConfig, -1)
|
|
||||||
));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue