SmartDashboard unable to display outputs from Navx2 Mpx

Our Codebase: GitHub - DoF-6413/2022-Commandbase-template at sds-templater

Hello, our SmartDashboard is not showing any change in values we send it here.
We’ve calibrated the Navx2, and it’s running 4.0.447 firmware.
We’ve tested it in Navx Ui and all the IMU readings looked normal.
When running the code, our expected outcome:
We should be seeing Navx Angles
Actual outcome:
The wheels of the robot move without any input from us approximately every 10 seconds and all Navx values stay at 0 while IsCalibrating remains true.
SmartDashboard Readout

Does anybody know if there’s anything specific we have to do for the Navx2 code to readout? It originally came with the Pigeon.

2 Likes

Where are you putting that data to smart dashboard in your code? I can’t find it.

2 Likes

Hi! It is in the branch sds-templater, I believe it is in the Robot.java folder

SOLVED: The NavX2 had been flashed with the wrong firmware. It had the micro firmware on it. Once that was replaced with the correct firmware the code runs fine.

We discovered the real problem after swapping out the NavX with another which worked and then running the navXUI with the original NavX board again.

There was also some human error involved when posting the code link earlier. The current code had not been pushed to GitHub before the question and link were posted so the noone could see the version trying to access the gyro values. Apologies for that and thanks to those who helped.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.