I tested our gyro on another team's RoboRIO and it worked. So I know now that there is nothing wrong with the gyro. It's running the same test code. So there is something wrong with our RoboRIO. Since it happens on both of our RoboRIOs, I am assuming it is more likely a configuration issue although I have checked that we have 2017_v8 image and v3.0f firmware version. Everything seems to check out fine. So I am puzzled on why the gyro is not working on our RoboRIOs with the same test code. I would like to check out if there is really hardware issues with the SPI bus on our two RoboRIOs. Any cheap SPI bus analyzer that I can get? Don't want to get the $300 ones. Anybody has experience on the Bus Pirate sold by Sparkfun?
https://www.sparkfun.com/products/12942