Quote:
Originally Posted by samfruth
To clarify, the value being fed out of the unbundle by name vi is always 0. 0E-3 to be exact. The pitch angle is definitely the value we want. I know it's not working properly because the value never changes from 0 during teleop driving or auto.
|
Can you please confirm that you are using the most recent version of the LabView library for the navX-MXP? The latest version of this is 2.0.5.0, and a release is available here:
https://github.com/FRC900/navX-MXP-LabVIEW/releases
One you have verified that your release is current, I'd encourage you to run in LabView the "navX Example v2.vi", which is in the "Examples\Functions" folder once you open the "navX Library.lvproj" project in LabView . This provides a monitor on the navX-MXP and will display the Yaw, Pitch and Roll values from the sensor, along with a lot of other information. This will verify that your board is correctly sending pitch/roll values to a labview application.
As you run this test, be sure to select the appropriate interface (SPI, I2C or TTL UART) in the example, to match what you use in your robot application.
Please let us know what you find.