trikRuntime
trikControl::VectorSensor Class Reference

Sensor that returns a vector. More...

#include <vectorSensor.h>

Inheritance diagram for trikControl::VectorSensor:
Collaboration diagram for trikControl::VectorSensor:

Public Slots

QVector< int > read () const override
 
- Public Slots inherited from trikControl::VectorSensorInterface
virtual QVector< int > read () const =0
 Returns current raw reading of a sensor. More...
 

Public Member Functions

 VectorSensor (const QString &deviceName, const trikKernel::Configurer &configurer, const trikHal::HardwareAbstractionInterface &hardwareAbstraction)
 Constructor. More...
 
 ~VectorSensor () override
 
Status status () const override
 Returns current status of the device. More...
 
- Public Member Functions inherited from trikControl::DeviceInterface
 DeviceInterface ()=default
 
virtual ~DeviceInterface ()=default
 

Additional Inherited Members

- Public Types inherited from trikControl::DeviceInterface
enum  Status {
  Status::permanentFailure, Status::temporaryFailure, Status::off, Status::starting,
  Status::ready, Status::stopping
}
 Device status. More...
 
- Signals inherited from trikControl::VectorSensorInterface
void newData (QVector< int > reading, const trikKernel::TimeVal &eventTime)
 Emitted when new sensor reading is ready. More...
 
- Static Public Member Functions inherited from trikControl::DeviceInterface
static Status combine (const DeviceInterface &underlying, const DeviceInterface::Status &dependent)
 Helper method to return status of a device relying on other device to work. More...
 

Detailed Description

Sensor that returns a vector.

Constructor & Destructor Documentation

VectorSensor::VectorSensor ( const QString &  deviceName,
const trikKernel::Configurer configurer,
const trikHal::HardwareAbstractionInterface hardwareAbstraction 
)

Constructor.

Parameters
port- port on which this sensor is configured.
configurer- configurer object containing preparsed XML files with sensor parameters.
VectorSensor::~VectorSensor ( )
override

Member Function Documentation

QVector< int > VectorSensor::read ( ) const
overrideslot
VectorSensor::Status VectorSensor::status ( ) const
overridevirtual

Returns current status of the device.

Implements trikControl::DeviceInterface.


The documentation for this class was generated from the following files: