MotionLib
1.0.0
SamBuCa motion library
|
Public Types | |
typedef std::shared_ptr< PositionSensor > | Shared |
![]() | |
typedef smc::DeviceType | DeviceType |
typedef std::shared_ptr< DeviceBase > | Shared |
Public Member Functions | |
PositionSensor (const std::string &address) | |
Construct a new POSITION Device at given location on given platform. More... | |
DeviceType | type () const override |
Get device type. More... | |
virtual std::future< units::value_t > | getPosition (units::unit_t unit) const =0 |
Get current position value. More... | |
virtual std::future< void > | setActualPosition (const units::value_t &value) const |
Set the current position value. More... | |
virtual units::value_t | lastPosition (units::unit_t unit) const =0 |
Get last known position. More... | |
![]() | |
DeviceId | uid () const |
Get the address of device. More... | |
virtual std::future< std::set< std::string > > | listConfig () const |
list device configuration options | |
virtual std::future< std::string > | getConfig (const std::string &name) const |
get device configuration value More... | |
virtual std::future< void > | setConfig (const std::string &name, const std::string &value) const |
set device configuration value More... | |
virtual bool | canConvert (const units::Value &value, units::unit_t unit) const |
Check if unit conversion is possible in a manner specific to this device. More... | |
virtual bool | convert (units::Value &value, units::unit_t unit) const |
Convert value in a manner specific to this device. More... | |
std::string | toString () const |
debug and logging operation | |
Additional Inherited Members | |
![]() | |
ccut::Signal< const DeviceBase::Shared & > | updateSignal |
device update signal More... | |
![]() | |
DeviceBase (const std::string &uid) | |
Construct a new ABaseDevice, linking pointer to platform object. More... | |
![]() | |
const std::string | m_uid |
Definition at line 41 of file PositionSensor.hpp.
smc::PositionSensor::PositionSensor | ( | const std::string & | address | ) |
Construct a new POSITION Device at given location on given platform.
platform | Platform on which POSITION is located |
address | Unique address of the POSITION |
Definition at line 31 of file PositionSensor.cpp.
|
pure virtual |
Get current position value.
unit | unit to get position in |
Implemented in smc::internal::MockPositionSensor, and smc::internal::MFEPositionSensor.
|
pure virtual |
Get last known position.
unit | unit to get position in |
Implemented in smc::internal::MockPositionSensor, and smc::internal::MFEPositionSensor.
|
virtual |
Set the current position value.
value | value to set |
Reimplemented in smc::internal::MockPositionSensor, and smc::internal::MFEPositionSensor.
Definition at line 39 of file PositionSensor.cpp.
|
overridevirtual |
Get device type.
Implements smc::DeviceBase.
Definition at line 34 of file PositionSensor.cpp.