Our team has recently been trying to use the navX with Labview robot code to get Linear Acceleration, Yaw, and Velocity data. However, we are running into several errors/issues while trying to do so. We used the Labview navX Libraries and VIs from https://github.com/FRC900/navX-MXP-LabVIEW .
We are able to compile the code on the laptop and deploy it successfully, but when we enable to robot and try to run the code, we get several errors, and the navX does not return any values. Additionally, whenever we put any navX code into our project(even in just Begin.vi), our drivetrain refuses to move. As soon as we remove the navX code, it works again. Our navX mounted directly onto the roboRIO and has been updated to the latest firmware version.
Images of our code and the code itself are all posted in this google drive folder:
Any help would be greatly appreciated, as we have been struggling with this for a while now.
Some of the errors we get on the DS:
ERROR -63195 Read/Write Control in FPGA_DIOWritePWMValue.vi->WPI_DigitalModuleSetPWM.vi->WPI_PWMSetValue.vi->WPI_MotorControlOpen&ConfigurePWM.vi->WPI_MotorControlOpen
ERROR -44035 FRC: The PWM channel index is invalid. WPI_PWMChannelCache.vi