|
trikRuntime
|
Handles events from sensor, intended to work in separate thread. More...
#include <vectorSensorWorker.h>


Public Slots | |
| QVector< int > | read () |
| Returns current raw reading of a sensor. More... | |
Signals | |
| void | newData (QVector< int > reading, const trikKernel::TimeVal &eventTime) |
| Emitted when new sensor reading is ready. More... | |
Public Member Functions | |
| VectorSensorWorker (const QString &eventFile, DeviceState &state, const trikHal::HardwareAbstractionInterface &hardwareAbstraction, QThread &thread) | |
| Constructor. More... | |
Handles events from sensor, intended to work in separate thread.
| VectorSensorWorker::VectorSensorWorker | ( | const QString & | eventFile, |
| DeviceState & | state, | ||
| const trikHal::HardwareAbstractionInterface & | hardwareAbstraction, | ||
| QThread & | thread | ||
| ) |
Constructor.
| eventFile | - device file for this sensor. |
| state | - state of a device. |
| thread | - background thread where all socket events will be processed. |
|
signal |
Emitted when new sensor reading is ready.
|
slot |
Returns current raw reading of a sensor.