Template:PTX COMPASSCAL: Difference between revisions
From Phidgets Support
(Created page with "<div class="phd-slide-deck" data-deck="PTX_COMPASSCAL"> <div class="phd-slide-deck-header"><h3>Magnetometer Calibration</h3></div> <div class="phd-slides"> <div class="phd-sli...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
</div> | </div> | ||
<div class="phd-panel phd-flex-column-align-left phd-flex-column-justify-top"> | <div class="phd-panel phd-flex-column-align-left phd-flex-column-justify-top"> | ||
<p>In order | <p>In order for your magnetometer to provide accurate heading information, it must be calibrated.</p> | ||
<p>Follow this guide to complete the calibration process.</p> | <p>Follow this guide to complete the calibration process.</p> | ||
</div> | </div> | ||
Line 17: | Line 17: | ||
<div class="phd-slide"> | <div class="phd-slide"> | ||
<p>1. Open the | <p>1. Open the Magnetometer example for your device, and click the <b>Calibrate button</b>. This will open the Compass Calibration tool.</p> | ||
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PTX_COMPASSCAL/ | <div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PTX_COMPASSCAL/-x390/50/ccal1.png"></div> | ||
</div> | </div> | ||
<div class="phd-slide"> | <div class="phd-slide"> | ||
<p>2. | <p>2. If your device supports heating, we recommend checking the <b>HeatingEnabled</b> checkbox. Wait for the temperature reading to turn green:</p> | ||
< | <div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PTX_COMPASSCAL/ccal2.png"></div> | ||
< | <p>If your Spatial does not support heating (neither of the above controls will be available), you can skip this step.</p> | ||
</div> | </div> | ||
<div class="phd-slide"> | <div class="phd-slide"> | ||
<p>3. | <p>3. Next, decide if you're using 2-axis or 3-axis calibration:</p> | ||
<p> | <p>● If the spatial is free to move in all directions, use 3-axis</p> | ||
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PTX_COMPASSCAL/ | <p>● If the spatial is being kept mostly level (e.g. in a car), use 2-axis</p> | ||
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PTX_COMPASSCAL/ccal3.png"></div> | |||
</div> | </div> | ||
<div class="phd-slide"> | <div class="phd-slide"> | ||
<p> | <p> | ||
4. | 4. You can leave the <b>Local Field Strength</b> at 1.0 for general use since magnitude doesn't affect heading. If you need more quantitative results, look up | ||
your local value. | |||
</p> | </p> | ||
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PTX_COMPASSCAL/ | <div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PTX_COMPASSCAL/-x390/50/ccal4.png"></div> | ||
</div> | </div> | ||
Line 50: | Line 52: | ||
<p>5. Make sure your Phidget Spatial is firmly in the position you intend to calibrate it for, and begin by clicking the <b>Start</b> button.</p> | <p>5. Make sure your Phidget Spatial is firmly in the position you intend to calibrate it for, and begin by clicking the <b>Start</b> button.</p> | ||
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PTX_COMPASSCAL/ | <p>Begin rotating the structure your Phidget is mounted to. Notice the red dots appearing on the graph.</p> | ||
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PTX_COMPASSCAL/-x350/50/ccal5.png"></div> | |||
</div> | </div> | ||
<div class="phd-slide"> | <div class="phd-slide"> | ||
<p>6. Try to rotate it so that it fills out as much of the sphere (or circle in 2-axis mode) as possible. When you're finished, click <b>Stop</b>.</p> | |||
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PTX_COMPASSCAL/-x200/50/ccal7.png"></div> | |||
<p> | <p> | ||
You should now see red and green spheres (or circles) in the graph. The red one is the raw measurements, and the green one is the calibrated measurements. | |||
</p> | </p> | ||
<p> | <p> | ||
Newly calibrated data from the magnetometer will be indicated by a green line that matches the sphere. The green sphere should be more centered than the red | |||
one. If not, try repeating the calibration. | |||
</p> | |||
< | <p> | ||
You're now done the calibration process! On most Phidget Spatials, the calibration will be stored in flash, so it stays calibrated to this environment even | |||
across power cycles. | |||
</p> | |||
</div> | </div> | ||
<div class="phd-slide"> | <div class="phd-slide"> | ||
<p> | <p>7. If you need to repeat this exact calibration, you can save the values listed in the text box.</p> | ||
7. | |||
<div class="phd-lazy-image" data-src="https://www.phidgets.com/decks/PTX_COMPASSCAL/-x360/50/ccal8.png"></div> | |||
</ | |||
<p> | <p> | ||
You can use these values in the <b>setMagnetometerCorrectionParameters</b> method. See our | |||
<span>[https://www.phidgets.com/?view=api API Documentation]</span> for more details. | <span>[https://www.phidgets.com/?view=api API Documentation]</span> for more details. | ||
</p> | </p> | ||
</div> | </div> | ||
</div> | </div> |