View Single Post
  #19   Spotlight this post!  
Unread 25-01-2017, 00:24
madz's Avatar
madz madz is offline
Registered User
FTC #4962 (FRC 2723 Team Rocket/FTC Rockettes/FLL Baking Soda Volcano)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2011
Location: Oklahoma
Posts: 40
madz is on a distinguished road
Re: ANNOUNCING: Kauai Labs navX-MXP Upgrade, navX-Micro & SF2

Quote:
Originally Posted by slibert View Post
If Kauai Labs creates a Java tank drive "straight-line driving" example using the WPI Library RobotDrive class, would your team be able to spend some time testing it? I realize everyone's busy right now...

Sorry for the slow reply. We'd be happy to.

We are trying to get this to work right now, but are running into build problems just trying to test out the DataMonitor example. We followed the steps at http://www.pdocs.kauailabs.com/navx-...ibraries/java/ (three sets of eyes checked this) and are still getting an error:


...navx-mxp\java\examples\DataMonitor\src\org\usfirst\frc\ team2465\robot\Robot.java:3: error: package com.kauailabs.navx.frc does not exist
[javac] import com.kauailabs.navx.frc.AHRS;


Is there anything else we should check? This seems like a really basic thing. We've now spent two full meetings trying to figure it out. The navx-mxp jar path is right there in our Java Build Path, but its like it's invisible and gets letf out during the build.

Code:
Buildfile: C:\Users\robotics\navx-mxp\java\examples\DataMonitor\build.xml
Trying to override old definition of task classloader
clean:
   [delete] Deleting directory C:\Users\robotics\navx-mxp\java\examples\DataMonitor\build
compile:
    [mkdir] Created dir: C:\Users\robotics\navx-mxp\java\examples\DataMonitor\build
     [echo] [athena-compile] Compiling src with classpath=C:\Users\robotics/wpilib/java/current/lib/WPILib.jar:C:\Users\robotics/wpilib/java/current/lib/NetworkTables.jar: to build
    [javac] Compiling 1 source file to C:\Users\robotics\navx-mxp\java\examples\DataMonitor\build
    [javac] C:\Users\robotics\navx-mxp\java\examples\DataMonitor\src\org\usfirst\frc\team2465\robot\Robot.java:3: error: package com.kauailabs.navx.frc does not exist
    [javac] import com.kauailabs.navx.frc.AHRS;
    [javac]                              ^
    [javac] C:\Users\robotics\navx-mxp\java\examples\DataMonitor\src\org\usfirst\frc\team2465\robot\Robot.java:34: error: cannot find symbol
    [javac]     AHRS ahrs;
    [javac]     ^
    [javac]   symbol:   class AHRS
    [javac]   location: class Robot
    [javac] C:\Users\robotics\navx-mxp\java\examples\DataMonitor\src\org\usfirst\frc\team2465\robot\Robot.java:51: error: cannot find symbol
    [javac]             ahrs = new AHRS(SPI.Port.kMXP);
    [javac]                        ^
    [javac]   symbol:   class AHRS
    [javac]   location: class Robot
    [javac] C:\Users\robotics\navx-mxp\java\examples\DataMonitor\src\org\usfirst\frc\team2465\robot\Robot.java:135: error: package AHRS does not exist
    [javac]             AHRS.BoardYawAxis yaw_axis = ahrs.getBoardYawAxis();
    [javac]                 ^
    [javac] 4 errors

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

Total time: 610 milliseconds
__________________
"Jill of all trades" for
FTC 4962 The Rockettes
FRC 2723 Team Rocket
Reply With Quote