The navX-sensor Arduino Library is useful for integrating a navX-sensor into Arduino-based project.
To use the library, you can checkout the source code with Git.
After checking out the source code with Git into a directory on your computer, compile using the Arduino IDE.
The file navXTestJig.ino demonstrates how to integrate the library into your application. The setup() and loop() functions in this file demonstrate how to initialize and communicate with the sensor.