|
std::weak_ptr< MFEPlatform > | m_mfe |
|
const std::string | m_uid |
|
Definition at line 37 of file MFEPositionSensor.hpp.
◆ canConvert()
bool MFEPositionSensor::canConvert |
( |
const units::Value & |
value, |
|
|
units::unit_t |
unit |
|
) |
| const |
|
overridevirtual |
Check if unit conversion is possible in a manner specific to this device.
- Parameters
-
value | Value to check |
unit | Unit to check |
- Returns
- true If conversion is possible
-
false If conversion is not possible
Reimplemented from smc::DeviceBase.
Definition at line 253 of file MFEPositionSensor.cpp.
◆ convert()
bool MFEPositionSensor::convert |
( |
units::Value & |
value, |
|
|
units::unit_t |
unit |
|
) |
| const |
|
overridevirtual |
Convert value in a manner specific to this device.
- Parameters
-
value | Value to convert |
unit | Unit to convert to |
- Returns
- true If conversion was successful
-
false If conversion is not possible
Reimplemented from smc::DeviceBase.
Definition at line 263 of file MFEPositionSensor.cpp.
◆ getConfig()
std::future< std::string > MFEPositionSensor::getConfig |
( |
const std::string & |
name | ) |
const |
|
overridevirtual |
◆ getPosition()
std::future< units::value_t > MFEPositionSensor::getPosition |
( |
units::unit_t |
unit | ) |
const |
|
overridevirtual |
Get current position value.
- Parameters
-
unit | unit to get position in |
- Returns
- future<mm> Future completed with value when command executed.
Implements smc::PositionSensor.
Definition at line 45 of file MFEPositionSensor.cpp.
◆ lastPosition()
units::value_t MFEPositionSensor::lastPosition |
( |
units::unit_t |
unit | ) |
const |
|
overridevirtual |
◆ setActualPosition()
std::future< void > MFEPositionSensor::setActualPosition |
( |
const units::value_t & |
value | ) |
const |
|
overridevirtual |
◆ setConfig()
std::future< void > MFEPositionSensor::setConfig |
( |
const std::string & |
name, |
|
|
const std::string & |
value |
|
) |
| const |
|
overridevirtual |
The documentation for this class was generated from the following files:
- /builds/mro/controls/sambuca/sambuca-motion-lib/src/platform/specialized/MFEPlatform/MFEPositionSensor.hpp
- /builds/mro/controls/sambuca/sambuca-motion-lib/src/platform/specialized/MFEPlatform/MFEPositionSensor.cpp