equal
deleted
inserted
replaced
59 QObject::connect(static_cast<TapSensorChannelInterface*>(m_sensorInterface), SIGNAL(dataAvailable(const Tap&)), this, SLOT(slotDataAvailable(const Tap&))); |
59 QObject::connect(static_cast<TapSensorChannelInterface*>(m_sensorInterface), SIGNAL(dataAvailable(const Tap&)), this, SLOT(slotDataAvailable(const Tap&))); |
60 else |
60 else |
61 qWarning() << "Unable to initialize tap sensor."; |
61 qWarning() << "Unable to initialize tap sensor."; |
62 |
62 |
63 // metadata |
63 // metadata |
|
64 addDataRate(100, 100); // 100Hz |
|
65 sensor->setDataRate(100); |
64 addOutputRange(0, 9, 1); |
66 addOutputRange(0, 9, 1); |
65 setDescription(QLatin1String("Measures single and double taps and gives tap direction")); |
67 setDescription(QLatin1String("Measures single and double taps and gives tap direction")); |
66 |
68 |
67 m_initDone = true; |
69 m_initDone = true; |
68 } |
70 } |