Hardware Reference
In-Depth Information
The first three numbers are the x, y, and z raw accelerometer readings, and the last three
are the x, y, and z angle readings from the gyroscope. If you mount the device flat in your
project, the x, y, and z readings would be associated with the yaw, pitch, and roll of the
device respectively. As you move the device around, you should see these readings
change. This data can then be used to sense when your device is moving, in what direc-
tion, and how it is positioned. The device has a lot of capabilities, including the ability to
calibrate itself so that a particular position is the "zero" position. For more information
about these capabilities, feel free to look at both example programs provided by the lib-
rary. In Chapter 13 , Robots That Can Fly , you'll learn how to use this device in a quad-
copter application.
Search WWH ::




Custom Search