NavX breaks code

Our NavX will not work with this year’s WPILib. The line of code that imports the NavX library works, but when this line of code is added
AHRS navx = new AHRS();
we get the following output and never get the Driver Station green light for Robot Code:

********** Robot program starting **********
NT: could not open persistent file '/home/lvuser/networktables.json': No such file or directory
NT: Listening on NT3 port 1735, NT4 port 5810
NT: Got a NT3 connection from 172.22.11.1 port 50958
NT: CONNECTED NT3 client 'NT3@172.22.11.1:50958' (from 172.22.11.1:50958)
navX-Sensor Java library for FRC
java.lang.UnsatisfiedLinkError: no vmxHaljni in java.library.path: /usr/local/frc/third-party/lib
at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.base/java.lang.Runtime.loadLibrary0(Unknown Source)
at java.base/java.lang.System.loadLibrary(Unknown Source)
at com.kauailabs.navx.frc.RegisterIOMau.<init>(RegisterIOMau.java:39)
at com.kauailabs.navx.frc.AHRS.<init>(AHRS.java:228)
at com.kauailabs.navx.frc.AHRS.<init>(AHRS.java:358)
at frc.robot.Robot.<init>(Robot.java:25)
at edu.wpi.first.wpilibj.RobotBase.runRobot(RobotBase.java:292)
at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:433)
at frc.robot.Main.main(Main.java:23)
pure virtual method called
terminate called without an active exception

We have the current NavX vendor library installed from https://dev.studica.com/releases/2023/NavX.json.

Thanks for your time.

You likely have the 2023.0.2 NavX library installed. Update to 2023.0.3.

1 Like

THANK YOU, sir. We did have 2023.0.2, and that was the issue. 2023.0.3 is working for us. We are back in business!

1 Like