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

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

JackRose's picture

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 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Adrian Stevens's picture

What hardware are you using to run the sample? 

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

Login to leave a comment.