1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../../css/manpage.css" type="text/css" />
7<title>EnableAxisRotation</title>
8  </head>
9  <body>
10<h1><CODE>nn::hid::CTR::GyroscopeReader::EnableAxisRotation</CODE> Member Function</h1>
11<h2>Syntax</h2>
12    <div class="section">
13      <pre class="definition">
14void EnableAxisRotation();
15</pre>
16    </div>
17<h2>Arguments</h2>
18    <div class="section">
19<p>None.</p>
20    </div>
21<h2>Return Values</h2>
22    <div class="section">
23None.
24               </div>
25<h2>Description</h2>
26    <div class="section">
27<p>Enables axial rotation.</p><p>When axial rotation is enabled, the rotation matrix specified by the <CODE>nnhid::CTR::GyroscopeReader::SetRotationAxis</CODE> function is used to perform a rotational transform on the sampling data, and the resulting values are output.</p><p>This processing allows you to handle the sensor readings as though the sensor is tilted within the CTR system.</p><p>If both axial rotation and acceleration correction are performed, you must be aware of the accelerometer settings. In such cases, the referenced <CODE>AccelerometerReader</CODE> and the gyro sensor must share the same settings for axial rotation. If you use the default <CODE>AccelerometerReader</CODE> and call the <CODE><a href="../../../../nn/hid/CTR/GyroscopeReader/EnableAxisRotation.html">nn::hid::CTR::GyroscopeReader::EnableAxisRotation</a></CODE>, <CODE><a href="../../../../nn/hid/CTR/GyroscopeReader/DisableAxisRotation.html">nn::hid::CTR::GyroscopeReader::DisableAxisRotation</a></CODE>, <CODE><a href="../../../../nn/hid/CTR/GyroscopeReader/SetAxisRotationMatrix.html">nn::hid::CTR::GyroscopeReader::SetAxisRotationMatrix</a></CODE> or <CODE><a href="../../../../nn/hid/CTR/GyroscopeReader/ResetAxisRotationMatrix.html">nn::hid::CTR::GyroscopeReader::ResetAxisRotationMatrix</a></CODE> function, the SDK calls the function corresponding to the default <CODE><a href="../../../../nn/hid/CTR/AccelerometerReader/Overview.html">nn::hid::CTR::AccelerometerReader</a></CODE> and the same settings are propagated. But when you have specified an independent <CODE><a href="../../../../nn/hid/CTR/AccelerometerReader/Overview.html">nn::hid::CTR::AccelerometerReader</a></CODE> instance with the constructor, the application is responsible for ensuring that the same settings are propagated.<br /><B>Note:</B> If the axial rotation settings are different, acceleration correction might yield inappropriate results.</p><p>Initial value is disabled.</p><!-- write here --></div>
28<h2>Revision History</h2>
29    <div class="section">
30      <dl class="history">
31        <dt>2010/10/20</dt>
32<dd>Initial version.<br />
33        </dd>
34      </dl>
35    </div>
36  <hr><p>CONFIDENTIAL</p></body>
37</html>