trikRuntime
trikControl::SoundSensorInterface Class Referenceabstract

Uses virtual sound sensor to detect angle of sound source. More...

#include <soundSensorInterface.h>

Inheritance diagram for trikControl::SoundSensorInterface:
Collaboration diagram for trikControl::SoundSensorInterface:

Public Slots

virtual void init (bool showOnDisplay)=0
 Initializes an ALSA. More...
 
virtual void detect ()=0
 Not use. More...
 
virtual void volume (int volCoeff)=0
 Sets volume coefficient. More...
 
virtual QVector< int > read ()=0
 Returns angle and volume for both channels. More...
 
virtual void stop ()=0
 Stops detection until init() will be called again. More...
 

Signals

void stopped ()
 Emitted when sensor is stopped successfully. More...
 

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...
 
- Public Member Functions inherited from trikControl::DeviceInterface
 DeviceInterface ()=default
 
virtual ~DeviceInterface ()=default
 
virtual Status status () const =0
 Returns current status of the device. 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

Uses virtual sound sensor to detect angle of sound source.

Member Function Documentation

virtual void trikControl::SoundSensorInterface::detect ( )
pure virtualslot

Not use.

virtual void trikControl::SoundSensorInterface::init ( bool  showOnDisplay)
pure virtualslot

Initializes an ALSA.

Parameters
showOnDisplay- true if we want an image from DSP to be drawn on robot display.
virtual QVector<int> trikControl::SoundSensorInterface::read ( )
pure virtualslot

Returns angle and volume for both channels.

virtual void trikControl::SoundSensorInterface::stop ( )
pure virtualslot

Stops detection until init() will be called again.

void trikControl::SoundSensorInterface::stopped ( )
signal

Emitted when sensor is stopped successfully.

virtual void trikControl::SoundSensorInterface::volume ( int  volCoeff)
pure virtualslot

Sets volume coefficient.


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