My team just received one of the new NavX2s. When looking over the documentation, we decided to look at the example code. However, all of the example code uses the old import edu.wpi.first.wpilibj.PIDController; when we need the new one edu.wpi.first.wpilibj.controller.PIDController. When we change it however, other locations in the code, (trying to make a new PIDController class with 6 arguments, setting input and output, and setting tolerance and continuous. Is there any alternatives to these or a solution? Thank you!
Bonus question: It seems all of the examples are for robots with omnidirectional wheels. Do we need those on our robot for the NavX2 to be useful?
I doubt that there is any difference between the NavX2 and the original NavX code-wise. Look at the FRC documentation and the examples there, the docs and examples on Kauai’s site are possibly outdated. The NavX AHRSclass is a drop-in replacement for the ADXSR450_Gyro class used in the examples, with the exception of needing to invert the angle (just use -getAngle()).