Public Member Functions | List of all members
RTT::dev::DriveInterface Class Referenceabstract

A Drive Object controls a single axis. It is responsible for keeping track of its status (enabled, disabled). More...

#include <DriveInterface.hpp>

Public Member Functions

virtual void addOffset (double addoffset)=0
 
virtual bool disableDrive ()=0
 
virtual double driveGet () const =0
 
virtual bool driveSet (double v)=0
 
virtual bool enableDrive ()=0
 
virtual DigitalOutputgetEnable ()=0
 Get the enable signal of the drive as a DigitalOutput. More...
 
virtual double getOffset ()=0
 
virtual bool isEnabled () const =0
 
virtual void limit (double lower, double higher, const internal::Signal< void(std::string)> &ev)=0
 
virtual double maxDriveGet () const =0
 
virtual double minDriveGet () const =0
 
virtual ~DriveInterface ()
 

Detailed Description

A Drive Object controls a single axis. It is responsible for keeping track of its status (enabled, disabled).

Definition at line 56 of file DriveInterface.hpp.

Constructor & Destructor Documentation

virtual RTT::dev::DriveInterface::~DriveInterface ( )
inlinevirtual

Definition at line 59 of file DriveInterface.hpp.

Member Function Documentation

virtual void RTT::dev::DriveInterface::addOffset ( double  addoffset)
pure virtual

Add an offset to the current drive value. Use this value to compensate for drift when the drive is enabled.

virtual bool RTT::dev::DriveInterface::disableDrive ( )
pure virtual

Disable the drive.

virtual double RTT::dev::DriveInterface::driveGet ( ) const
pure virtual

Returns the current drive velocity.

virtual bool RTT::dev::DriveInterface::driveSet ( double  v)
pure virtual

Sets a new velocity.

Parameters
vThe velocity
Returns
false if not enabled.
virtual bool RTT::dev::DriveInterface::enableDrive ( )
pure virtual

Enable the drive.

virtual DigitalOutput* RTT::dev::DriveInterface::getEnable ( )
pure virtual

Get the enable signal of the drive as a DigitalOutput.

virtual double RTT::dev::DriveInterface::getOffset ( )
pure virtual

Get the current offset

virtual bool RTT::dev::DriveInterface::isEnabled ( ) const
pure virtual

Query if the drive is enabled or not.

virtual void RTT::dev::DriveInterface::limit ( double  lower,
double  higher,
const internal::Signal< void(std::string)> &  ev 
)
pure virtual

Limit the velocity of the drive.

virtual double RTT::dev::DriveInterface::maxDriveGet ( ) const
pure virtual

Returns the maximum drive velocity without limitations.

virtual double RTT::dev::DriveInterface::minDriveGet ( ) const
pure virtual

Returns the minimum drive velocity without limitations.


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


rtt
Author(s): RTT Developers
autogenerated on Tue Jun 25 2019 19:33:42