Commit 87940dbbe2df6cb5fd6c606a13597e4b3d9f3777

Added yaw and magnitude to QOrientationInfo.
The math needs to be verified.
  
3232 void orientationUpdate(const QString &rotation, const QString &stand, const QString &face, int x, int y, int z);
3333
3434Q_SIGNALS:
35 void orientationChanged(qreal pitch, qreal roll);
35 void orientationChanged(qreal pitch, qreal roll, qreal yaw, qreal mag);
3636
3737
3838private:
  
5353 Q_UNUSED(stand)
5454 Q_UNUSED(face)
5555
56 //TODO: check if these are correct!
5657 qreal pitch = atan2(static_cast<qreal>(x), static_cast<qreal>(-y));
5758 qreal roll = atan2(static_cast<qreal>(y), static_cast<qreal>(-z));
59 qreal yaw = atan2(static_cast<qreal>(x), static_cast<qreal>(-z));
60 qreal mag = qSqrt(qPow(static_cast<qreal>(x), 2) + qPow(static_cast<qreal>(y), 2) + qPow(static_cast<qreal>(z), 2));
5861
59 emit pub->orientationChanged(pitch, roll);
62 emit pub->orientationChanged(pitch, roll, yaw, mag);
6063}
6164
6265void QOrientationInfoPrivate::startListening()