getAngle() and getRawGyroZ() will not return anything other than 0. Our team does not have a ton of coding experience, so if you notice anything else in the code such as best practices we are not practicing, that would be appreciated as well. Everything we are working on now is in Robot.java.
Update - I’ve printed the calibration and connection status to SmartDashboard. It seems to be continuously calibrating, but isConnected() returns false.
We were using a NavX 1 MXP last year (our rookie year) and ended up digging in the NavX code to figure out what sounds like the same issue. In a nutshell, there’s an asynchronous race with NavX initialization. Our solution was to busy-wait until initialization completed.
Not sure if you meant to get the rotation rate since your code labels it “Test Angle” on Smartdashboard. To get the actual angles, getYaw(), getPitch() and getRoll() are what we used last year