Moved the gyro initialization out of the constructor and into the 'init' function