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">
23                None.
24               </div>
25    <h2>Description</h2>
26    <div class="section">
27      <p>Enables Axial rotation of the gyro sensor.</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 result is output. </p><p>This process can be used to treat the sensor in the CTR like it is positioned at a tilt. </p><p>If axial rotation is performed and acceleration correction is also performed, you need to pay special attention to the settings of the accelerometer.<br /> In this case, the <CODE>AccelerometerReader</CODE> and the gyro sensor must share the same settings for axial rotation.<br /> If you are using the default <CODE>AccelerometerReader</CODE>, when you call the functions <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> the SDK calls the corresponding <CODE><a href="../../../../nn/hid/CTR/AccelerometerReader/Overview.html">nn::hid::CTR::AccelerometerReader</a></CODE> function and the settings are shared. 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, these settings must be made by the application.<br /> Note that if the settings for axial rotation are not shared in common, the process of acceleration correction may behave in inappropriate ways.</p><p>This is disabled as the default.</p></div>
28  <hr><p>CONFIDENTIAL</p></body>
29</html>