|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Re: ANNOUNCING: Kauai Labs navX-MXP Upgrade, navX-Micro & SF2
Quote:
For 2017, the location of the navX-MXP RoboRIO Java Library has changed, to match the new standard defined by the WPI Library for 3rd-party libraries. This new location is: C:\Users\<username>\wpilib\user\java\lib This actually makes things simpler to configure in Eclipse than in previous years, but it involves a change to the Eclipse library paths. Please review the RoboRIO Java Library instructions for Configuring Eclipse Library Paths, which have been recently updated to reflect this new location. |
|
#17
|
|||
|
|||
|
Re: ANNOUNCING: Kauai Labs navX-MXP Upgrade, navX-Micro & SF2
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...
|
|
#18
|
|||
|
|||
|
Re: ANNOUNCING: Kauai Labs navX-MXP Upgrade, navX-Micro & SF2
Quote:
|
|
#19
|
||||
|
||||
|
Re: ANNOUNCING: Kauai Labs navX-MXP Upgrade, navX-Micro & SF2
Quote:
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
|
|
#20
|
||||
|
||||
|
Re: ANNOUNCING: Kauai Labs navX-MXP Upgrade, navX-Micro & SF2
Quote:
We'd love to test the tank drive code, though. We have a test drivetrain wired and ready to go. |
|
#21
|
|||
|
|||
|
Re: ANNOUNCING: Kauai Labs navX-MXP Upgrade, navX-Micro & SF2
Quote:
With your tank drive system, is it your goal to: - when stopped, rotate the robot to point to a particular angle? - or - - when moving, continue driving in a straight line? |
|
#22
|
||||
|
||||
|
Re: ANNOUNCING: Kauai Labs navX-MXP Upgrade, navX-Micro & SF2
Quote:
We're using a naxX micro for our FTC robot so are familiar with the FTC examples (we have a consistent 100 point autonomous in FTC). We are just trying to translate that into FRC where we have much less experience. So, for instance, we may: (1) drive on a heading for X encoder ticks (2) stop, and turn in place (3a) drive on a heading for X more encoder ticks AND/OR (3b) drive using vision tracking for X more encoder ticks |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|