Using SensorFusion Prediction
Hey Rift Peeps.
I'm interested in making use of the C++ SDK's SensorFusion prediction feature and I had a couple of questions:
1. What are the units for the SensorFusion::SetPrediction()'s dt parameter? Is it in seconds, or ms? I thought of using SensorFusion::GetPredictionDelta() to determine this, but by default it returns a value of 0, so I couldn't guess on the units.
2. I assume that I should be using SensorFusion::GetPredictedOrientation() rather than SensorFusion::GetOrientation() when I want to use the predicted value?
None of the C++ examples make use of SensorFusion prediction so I didn't have anything to reference. I see that the Unity demo does allow you to adjust the prediction amount, so that may be something to add as an option to the C++ demos too, just for an example of usage.
Thanks!
- Dave
I'm interested in making use of the C++ SDK's SensorFusion prediction feature and I had a couple of questions:
1. What are the units for the SensorFusion::SetPrediction()'s dt parameter? Is it in seconds, or ms? I thought of using SensorFusion::GetPredictionDelta() to determine this, but by default it returns a value of 0, so I couldn't guess on the units.
2. I assume that I should be using SensorFusion::GetPredictedOrientation() rather than SensorFusion::GetOrientation() when I want to use the predicted value?
None of the C++ examples make use of SensorFusion prediction so I didn't have anything to reference. I see that the Unity demo does allow you to adjust the prediction amount, so that may be something to add as an option to the C++ demos too, just for an example of usage.
Thanks!
- Dave
