Hardware Reference
In-Depth Information
The
Raw
data is the x, y, and z data that is coming directly from the compass and is re-
lated directly to the earth's magnetic field. The
Scaled
values are those that are scaled to
reflect true north. The
Heading
value is expressed in degrees and radians. Now, you can
add direction to your project! As you move the device around, you should see the
Head-
ing
value change. These readings should give you an indication of the heading of your
project. This is very useful to help you give direction to your robotic projects. However,
you may want to use even more information, such as speed and tilt. Fortunately, there are
sensors for this as well.