How to get Quaternion array data used Windows Sensor API (desktop)

How to get Quaternion array data used Windows Sensor API (desktop)

Hi I refer to the "Sample Application: Sensor Explorer" that Submitted by Dale Taylor (Intel) on Thu, 12/13/2012 - 14:53 and try to get Quaternion array data but failed at get sensor value, here is my code, please help to advise! // get by type -- OK hr = pSensorManager->GetSensorsByType(SENSOR_TYPE_AGGREGATED_DEVICE_ORIENTATION, &pSensorColl); // get value by SENSOR_DATA_TYPE_QUATERNION -- failed hr = pReport->GetSensorValue(SENSOR_DATA_TYPE_QUATERNION, &pvQuaternion); if(SUCCEEDED(hr)) { if (pvQuaternion.vt == VT_UI1|VT_VECTOR) { } } I can check the Quaternion data form Sensor Diagnostic Tool and make sure the data field is "SENSOR_DATA_TYPE_QUATERNION".

2 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

What hardware are you using to run the sample? 

http://www.themethodology.net
http://www.vancouvermobile.net

发表评论

登录添加评论。还不是成员?立即加入