|
trikRuntime
|
Implementation of PWM capture for real robot. More...
#include <pwmCapture.h>


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... | |
Implementation of PWM capture for real robot.
| PwmCapture::PwmCapture | ( | const QString & | port, |
| const trikKernel::Configurer & | configurer, | ||
| const trikHal::HardwareAbstractionInterface & | hardwareAbstraction | ||
| ) |
Constructor.
| port | - port on which this sensor is configured. |
| configurer | - configurer object containing preparsed XML files with sensor parameters. |
|
override |
|
overrideslot |
Returns PWM signal duty.
|
overrideslot |
Returns three readings of PWM signal frequency.
|
overridevirtual |
Returns current status of the device.
Implements trikControl::DeviceInterface.