trikRuntime
trikControl::PwmCapture Class Reference

Implementation of PWM capture for real robot. More...

#include <pwmCapture.h>

Inheritance diagram for trikControl::PwmCapture:
Collaboration diagram for trikControl::PwmCapture:

Public Slots

QVector< int > frequency () override
 Returns three readings of PWM signal frequency. More...
 
int duty () override
 Returns PWM signal duty. More...
 
- Public Slots inherited from trikControl::PwmCaptureInterface
virtual QVector< int > frequency ()=0
 Returns three readings of PWM signal frequency. More...
 
virtual int duty ()=0
 Returns PWM signal duty. More...
 

Public Member Functions

 PwmCapture (const QString &port, const trikKernel::Configurer &configurer, const trikHal::HardwareAbstractionInterface &hardwareAbstraction)
 Constructor. More...
 
 ~PwmCapture () 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...
 
- 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

Implementation of PWM capture for real robot.

Constructor & Destructor Documentation

PwmCapture::PwmCapture ( const QString &  port,
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.
PwmCapture::~PwmCapture ( )
override

Member Function Documentation

int PwmCapture::duty ( )
overrideslot

Returns PWM signal duty.

QVector< int > PwmCapture::frequency ( )
overrideslot

Returns three readings of PWM signal frequency.

PwmCapture::Status PwmCapture::status ( ) const
overridevirtual

Returns current status of the device.

Implements trikControl::DeviceInterface.


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