rec::robotino::api2 C++ interface
Public Member Functions | Friends | List of all members
rec::robotino::api2::PowerOutput Class Reference

Represents a digital output device. More...

#include <PowerOutput.h>

Inheritance diagram for rec::robotino::api2::PowerOutput:
rec::robotino::api2::ComObject

Public Member Functions

void setComId (const ComId &id)
 
void setValue (float controlPoint)
 
float current () const
 
virtual void readingsEvent (float current)
 
- Public Member Functions inherited from rec::robotino::api2::ComObject
 ComObject ()
 
virtual ~ComObject ()
 
ComId comId () const
 

Friends

class PowerOutputImpl
 

Additional Inherited Members

- Protected Attributes inherited from rec::robotino::api2::ComObject
ComId _comID
 

Detailed Description

Represents a digital output device.

See also
Gripper

Member Function Documentation

float rec::robotino::api2::PowerOutput::current ( ) const
Returns
The current delivered by the power output in A.
Exceptions
nothing
virtual void rec::robotino::api2::PowerOutput::readingsEvent ( float  current)
virtual

Called when new data is available.

Parameters
currentThe current.
Remarks
This function is called from the thread in which Com::processEvents() is called.
See also
Com::processEvents
void rec::robotino::api2::PowerOutput::setComId ( const ComId id)

Sets the associated communication object.

Parameters
idThe id of the associated communication object.
Exceptions
RobotinoExceptionif given id is invalid.
Remarks
This function is thread save
void rec::robotino::api2::PowerOutput::setValue ( float  controlPoint)

Sets the current set point of the power output.

Parameters
controlPointThe control point. Range from -100 to 100.
Exceptions
RobotinoExceptionif the current communication object is invalid.

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