Linux Library - Kauai Labs navX-MXP User Manual

Robotics navigation sensor
Table of Contents

Advertisement

Software
Android Library (FTC)
"TeamCode" top-level directory. (i.e., org.firstinspires.ftc.teamcode).
Next, several configuration changes must be made in order that the Android Studio ftc_app-
based project can locate the navx_ftc library:
Modify the op mode example file to change the following line near the top of the file to
match the I2C port on the Core Device Interface Module to which you have connected
the navX-Model device:
private final int NAVX_DIM_I2C_PORT = 0; /* See the installation
page for details on port numbering. */
Modify your robot application's (the "TeamCode" project) build.release.gradle file
repository list to add a reference the directory where the navx_ftc library is installed:
repositories {
flatDir {
dirs 'libs', 'C:\\Users\\Robot\\navx-
micro\\android\\libs'
}
}
Again in the same build.release.gradle file, add the navx_ftc library to the list of libraries
the ftc_app will link to – by adding this line near the bottom of the gradle build file, in the
dependencies section:
dependencies {
...
compile (name:'navx_ftc-release', ext:'aar')
}
available. This library was developed by Alexander Allen of FRC Team 900 (Zebracorns) and

Linux Library

A library for accessing navX-MXP (and navX-Micro) from Linux is
31

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Kauai Labs navX-MXP

Table of Contents