View Single Post
  #1   Spotlight this post!  
Unread 19-01-2016, 21:15
ejscribner ejscribner is offline
Drive Team & Coach
FRC #2972
 
Join Date: Jan 2016
Rookie Year: 2013
Location: Boulder, CO
Posts: 15
ejscribner is an unknown quantity at this point
navX MXP Import Issue

I'm working on setting up the navX on Java with our roboRIO. I've followed the steps listed in this tutorial http://www.pdocs.kauailabs.com/navx-...ibraries/java/ and I'm still getting an error with the import. Here's what the error is saying:
Code:
Buildfile: C:\Users\Developer\Documents\GitHub\DeltaBot\build.xml
Trying to override old definition of task classloader
clean:
   [delete] Deleting directory C:\Users\Developer\Documents\GitHub\DeltaBot\build
compile:
    [mkdir] Created dir: C:\Users\Developer\Documents\GitHub\DeltaBot\build
     [echo] [athena-compile] Compiling src with classpath=C:\Users\Developer/wpilib/java/current/lib/WPILib.jar:C:\Users\Developer/wpilib/java/current/lib/NetworkTables.jar to build
    [javac] Compiling 1 source file to C:\Users\Developer\Documents\GitHub\DeltaBot\build
    [javac] C:\Users\Developer\Documents\GitHub\DeltaBot\src\org\usfirst\frc\team2972\robot\Robot.java:22: error: package com.kauailabs.navx.frc does not exist
    [javac] import com.kauailabs.navx.frc.AHRS;
    [javac]                              ^
    [javac] C:\Users\Developer\Documents\GitHub\DeltaBot\src\org\usfirst\frc\team2972\robot\Robot.java:33: error: cannot find symbol
    [javac]     AHRS ahrs;
    [javac]     ^
    [javac]   symbol:   class AHRS
    [javac]   location: class Robot
    [javac] C:\Users\Developer\Documents\GitHub\DeltaBot\src\org\usfirst\frc\team2972\robot\Robot.java:54: error: cannot find symbol
    [javac] 	           ahrs = new AHRS(SPI.Port.kMXP);  
    [javac] 	                      ^
    [javac]   symbol:   class AHRS
    [javac]   location: class Robot
    [javac] C:\Users\Developer\Documents\GitHub\DeltaBot\src\org\usfirst\frc\team2972\robot\Robot.java:169: error: package AHRS does not exist
    [javac] 	          AHRS.BoardYawAxis yaw_axis = ahrs.getBoardYawAxis(); 
    [javac] 	              ^
    [javac] 4 errors

BUILD FAILED
C:\Users\Developer\wpilib\java\current\ant\build.xml:69: Compile failed; see the compiler error output for details.

Total time: 3 seconds
And my import line looks like this:
Code:
import com.kauailabs.navx.frc.AHRS;
Any ideas as to what may be causing this error?