44 data compensator APIs allows you to compensate sensor data values, based on:</p><ul> |
44 data compensator APIs allows you to compensate sensor data values, based on:</p><ul> |
45 <li><p>Display Orientation, when the display is changed from portrait to landscape.</p></li> |
45 <li><p>Display Orientation, when the display is changed from portrait to landscape.</p></li> |
46 <li><p>Device Orientation, when the keyboard is opened, resulting in the display |
46 <li><p>Device Orientation, when the keyboard is opened, resulting in the display |
47 being set at an angle to the keyboard. For example, N97.</p></li> |
47 being set at an angle to the keyboard. For example, N97.</p></li> |
48 </ul> </context> |
48 </ul> </context> |
49 <steps id="GUID-4DD07DEC-6017-4237-BE46-1D69E5FBD744-GENID-1-12-1-10-1-1-8-1-5-1-4-1-3-3"> |
49 <steps id="GUID-4DD07DEC-6017-4237-BE46-1D69E5FBD744-GENID-1-12-1-11-1-1-8-1-5-1-4-1-3-3"> |
50 <step id="GUID-9A69E5AD-E938-4092-A8C2-CB65C37C8962-GENID-1-12-1-10-1-1-8-1-5-1-4-1-3-3-1"><cmd>Create an instance |
50 <step id="GUID-9A69E5AD-E938-4092-A8C2-CB65C37C8962-GENID-1-12-1-11-1-1-8-1-5-1-4-1-3-3-1"><cmd>Create an instance |
51 of <parmname>CSensorDataCompensator</parmname>.</cmd> |
51 of <parmname>CSensorDataCompensator</parmname>.</cmd> |
52 <stepxmp><codeblock xml:space="preserve">iCompensator = CSensorDataCompensator::NewL(TSensrvAccelerometerAxisData::KDataTypeId,ESensorCompensateDeviceAndUIOrientation);</codeblock></stepxmp> |
52 <stepxmp><codeblock xml:space="preserve">iCompensator = CSensorDataCompensator::NewL(TSensrvAccelerometerAxisData::KDataTypeId,ESensorCompensateDeviceAndUIOrientation);</codeblock></stepxmp> |
53 </step> |
53 </step> |
54 <step id="GUID-AE833279-71EA-43FC-AB2E-E4CFAF277A02"><cmd>Use the <xref href="GUID-D32C68EB-AB82-3C2D-98F1-280401FD1763.dita#GUID-D32C68EB-AB82-3C2D-98F1-280401FD1763/GUID-A400CB98-7D89-323F-92A8-EE5D581BEFA4"><apiname>CSensorDataCompensator::Compensate()</apiname></xref> function |
54 <step id="GUID-AE833279-71EA-43FC-AB2E-E4CFAF277A02"><cmd>Use the <xref href="GUID-D32C68EB-AB82-3C2D-98F1-280401FD1763.dita#GUID-D32C68EB-AB82-3C2D-98F1-280401FD1763/GUID-A400CB98-7D89-323F-92A8-EE5D581BEFA4"><apiname>CSensorDataCompensator::Compensate()</apiname></xref> function |
55 to correct the sensor data received from the following channel types and related |
55 to correct the sensor data received from the following channel types and related |