17 #include <QtCore/QObject> 18 #include <QtCore/QString> 19 #include <QtCore/QReadWriteLock> 20 #include <QtCore/QVector> 45 void init(
bool showOnDisplay);
58 QString sensorName()
const override;
60 void onNewData(QString
const &dataLine)
override;
63 QVector<int> mReading;
66 bool mShowOnDisplay =
true;
QVector< int > read()
Returns angle and volume for both channels. Can be accessed directly from other thread.
Definition: soundSensorWorker.cpp:45
SoundSensorWorker(const QString &script, const QString &inputFile, const QString &outputFile, DeviceState &state, trikHal::HardwareAbstractionInterface &hardwareAbstraction)
Constructor.
Definition: soundSensorWorker.cpp:19
Helper class to track device state (off, starting, ready, stopping, fail).
Definition: deviceState.h:26
Worker object that processes sound sensor output and updates stored reading.
Definition: soundSensorWorker.h:28
~SoundSensorWorker() override
Definition: soundSensorWorker.cpp:25
Definition: trikCommunicator.h:27
void init()
Launch sensor.
Definition: abstractVirtualSensorWorker.cpp:61
Base class for all virtual sensor workers.
Definition: abstractVirtualSensorWorker.h:38
void detect()
Not use.
Definition: soundSensorWorker.cpp:35
script
Definition: system.py:83
Hardware abstraction, provides devices that are used to communicate with robot hardware or emulate it...
Definition: hardwareAbstractionInterface.h:29
void volume(int volCoeff)
Sets volume coefficient.
Definition: soundSensorWorker.cpp:40