Separating Gyro values, X, Y and Z from RTimuLIB

Hi jremington

I am trying to print the X, Y and Z values based upon my very basic understanding of coding skill (guessing).

From both libraries, the RTMath.cpp and RTFusionRTQF.cpp

RTMath::displayRollPitchYaw("GyroPos:", (RTVector3&)fusion.getFusionPose());                                                  // Copied from two line 110

Serial.print(vec.x() * RTMATH_RAD_TO_DEGREE);

I got following error,

Arduino: 1.8.4 (Windows 7), TD: 1.39, Board: "Teensy 2.0, Serial + Keyboard + Mouse + Joystick, 16 MHz, US English"

ArduinoIMU: In function 'void loop()':
ArduinoIMU:114: error: 'vec' was not declared in this scope
Serial.print(vec.x() * RTMATH_RAD_TO_DEGREE);

^

'vec' was not declared in this scope

As for the "fusion.getFusionPose" portion. I am cracking my head trying to crack the coding.

Basic I am trying to get the X, Y and Z values so I can plugin with Hatire, Since I couldn't figure out how to the Joystick Windows device (HID) the recognize the IMU axis.

https://sourceforge.net/projects/hatire/files/ARDUINO/MPU6050/

ArduinoIMU.ino (4.72 KB)