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 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

What hardware are you using to run the sample? 

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

Connectez-vous pour laisser un commentaire.