Commit 038eee79254bed48e9af49d9342faeca4eaa935f
Added orientationChangedRaw signal to QOrientationInfo
| |   |
| 33 | 33 | |
| 34 | 34 | Q_SIGNALS: |
| 35 | 35 | void orientationChanged(qreal pitch, qreal roll, qreal yaw, qreal mag); |
| void orientationChangedRaw(qreal x, qreal y, qreal z); |
| 36 | 37 | |
| 37 | 38 | |
| 38 | 39 | private: |
| |   |
| 60 | 60 | qreal mag = qSqrt(qPow(static_cast<qreal>(x), 2) + qPow(static_cast<qreal>(y), 2) + qPow(static_cast<qreal>(z), 2)); |
| 61 | 61 | |
| 62 | 62 | emit pub->orientationChanged(pitch, roll, yaw, mag); |
| emit pub->orientationChangedRaw(static_cast<qreal>(x), static_cast<qreal>(y), static_cast<qreal>(z)); |
| 63 | 64 | } |
| 64 | 65 | |
| 65 | 66 | void QOrientationInfoPrivate::startListening() |