共用方式為


Verify Sensor Orientation - 3D Compass (System)

The compass tests in the Windows Hardware Certification Kit (Windows HCK) validate that the compass returns expected values when the system is held at different directions and orientations. The compass tests allow for an error tolerance of +/- 10 degrees. You should use a reference compass to determine the direction of magnetic north before you start the compass test.

Test details

Associated requirements

System.Client.Sensor.Integrated

See the system hardware requirements.

Platforms

Windows RT (ARM-based) Windows 8 (x64) Windows 8 (x86) Windows RT 8.1 Windows 8.1 x64 Windows 8.1 x86

Expected run time

~2 minutes

Categories

Certification Functional

Type

Manual

 

Running the test

Before you run the test, complete the test setup as described in the test requirements: System Client Testing Prerequisites.

Most compass implementations use data from both the 3D magnetometer and the gyro to calculate the current direction that the system is facing relative to the magnetic north pole. Some implementations also use data from the accelerometer. Therefore, if the gyroscope or accelerometer sensor are not functioning properly, you should expect to see the compass return incorrect headings.

Because the earth’s magnetic force is relatively weak, the magnetometer sensors are often subject to interference from other system components. If the magnetometers are not adequately isolated from sources of electromagnetic interference such as antennas, power lines, or other components that are composed of materials such as iron that interfere with magnetic reception, you will find that the compass returns incorrect headings. For guidance on correct magnetometer placement and best practices, see Integrating Motion and Orientation Sensors.

We highly recommend that you stand holding the system at various angles and rotate yourself so that you end up facing different directions. Regardless of the angle the system is being held, or landscape / portrait orientation, the compass should always return the heading relative to the direction that you are facing. Note that a sensor diagnostic tool can be used to display the heading value from the compass sensor. If you determine that the compass is returning incorrect or inconsistent results, please work with the magnetometer sensor vendor to determine if the error is a result of interference or an incorrect sensor fusion algorithm.

Troubleshooting

For troubleshooting information, see Troubleshooting System Client Testing.

 

 

Send comments about this topic to Microsoft