![Kauai Labs navX2-MXP User Manual Download Page 35](http://html1.mh-extra.com/html/kauai-labs/navx2-mxp/navx2-mxp_user-manual_3634856035.webp)
Software
Android Library (FTC)
Android libraries, including the “repositories” section of the build.release.gradle file:
repositories {
flatDir {
dirs 'libs','/Users/Robot/navx-mxp/android/libs'
}
}
Linux Library
A library for accessing navX2-MXP and navX2-Micro (as well as the “Classic”
navX-MXP and navX-Micro sensors) from Linux is available. This library was developed by Alexander
Allen of FRC Team 900 (Zebracorns) and supports the USB interface.
The navX-sensor Linux Library is useful for integrating with video processors such as the Raspberry-PI
and the Jetson TK1 and TX1.
the source code with Git. Online help is also available.
Getting Started
After checking out the source code with Git into a directory on your Linux OS, compile the library using
The file Timestamp.cpp demonstrates how to integrate the library into your application; you will need to
identify the Linux serial port name to use, as follows:
AHRS ahrs = AHRS("/dev/ttyACM0");
Sensor data values can be retrieved after the completion of the AHRS constructor.
Arduino Library
32