We just got our new gyro, an ADXRS450 Analog Devices gyro, and declared it in our include statements and put a declaration for it. We put the value from the gyro into Shuffleboard, but when we enable the robot and drive it in teleop, we get no output from our gyro.
Here are the statements we are using:
#include <frc/ADXRS450_Gyro.h>
frc::ADXRS450_Gyro gyro{frc::SPI::Port::kMXP};
frc::SmartDashboard::PutNumber(“Gyro Angle”, gyro.GetAngle()); (in Teleop Periodic)