Examples

Example_Icon

 

Example source code for various navX-sensor capabilities are available for both for FRC and FTC Robotics Control Systems.

FRC Examples

This section provides example code for several common navX-sensor applications used by FIRST FRC teams on their robots to add sophisticated navigation capabilities.  These examples are in Java, C++ and LabVIEW.

  • Java/C++
    • When you run the setup program contained in the latest build, Java/C++ examples will be installed to subdirectories underneath <home_directory>\navx-mxp\<language>\examples\vscode (e.g., C:\Users\Robot\navx-mxp\cpp\examples\vscode).  These examples are compatible with VIsual Studio Code.
  • LabVIEW
    • When you run the setup program contained in the latest build, LabVIEW examples are installed at:
      • <LabVIEW Install Directory>\vi.lib\Rock Robotics\WPI\ThirdParty\Sensors\navX
    • The LabVIEW Install Directory is typically C:\Program Files (x86)\National Instruments\LabVIEW 2017.

FTC Examples

If you are looking for FTC examples, please see the navX-Micro Examples.