diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-11-10 23:39:05 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2015-11-11 08:49:09 +0000 |
commit | 5bf7f558ac28db23025e05d1cac5108b744db092 (patch) | |
tree | 77ea6907e0a68b26ceaa1dcd747c90c22fbd2ae6 /examples/sensehat/sensors/main.cpp | |
parent | f41bb7708e1cedd68723942573b5ffae91948b31 (diff) |
Add orientation (fusion pose)
Change-Id: I1eee8aa153d45b4dd651db616bf97b30cf4a5a68
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'examples/sensehat/sensors/main.cpp')
-rw-r--r-- | examples/sensehat/sensors/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/sensehat/sensors/main.cpp b/examples/sensehat/sensors/main.cpp index f2c6399..87968cf 100644 --- a/examples/sensehat/sensors/main.cpp +++ b/examples/sensehat/sensors/main.cpp @@ -70,6 +70,9 @@ int main(int argc, char **argv) QObject::connect(&sensors, &QSenseHatSensors::compassChanged, [](const QVector3D &v) { qDebug() << "Compass:" << v; }); + QObject::connect(&sensors, &QSenseHatSensors::orientationChanged, [](const QVector3D &v) { + qDebug() << "Orientation:" << v; + }); QTimer::singleShot(10000, &app, &QCoreApplication::quit); |