MotionLib
1.0.0
SamBuCa motion library
|
Public Types | |
typedef std::shared_ptr< MFEAxisPositionMonitor > | Shared |
![]() | |
enum | State { UNKNOWN , ENABLED , DISABLED , TRIGGERED } |
typedef std::shared_ptr< AxisPositionMonitor > | Shared |
![]() | |
typedef smc::DeviceType | DeviceType |
typedef std::shared_ptr< DeviceBase > | Shared |
Public Member Functions | |
MFEAxisPositionMonitor (const std::string &uid, const std::shared_ptr< Axis > &axis, const std::shared_ptr< PositionSensor > &position, const std::shared_ptr< MFEPlatform > &mfe) | |
std::future< units::value_t > | getDifference (units::unit_t unit) const override |
Get current position difference between axis and positionSensor. | |
std::future< units::value_t > | getMaxDifference (units::unit_t unit) const override |
Get max difference since monitor was enabled. | |
std::future< State > | getState () const override |
Get the current device state. | |
std::future< void > | setEnabled (bool enabled) override |
Enable/disable the monitor. More... | |
units::value_t | lastDifference (units::unit_t unit) const override |
Get last known difference. More... | |
State | lastState () const override |
Get last known state. More... | |
std::future< std::set< std::string > > | listConfig () const override |
list device configuration options | |
std::future< std::string > | getConfig (const std::string &name) const override |
get device configuration value More... | |
std::future< void > | setConfig (const std::string &name, const std::string &value) const override |
set device configuration value More... | |
![]() | |
AxisPositionMonitor (const std::string &address, const std::shared_ptr< Axis > &axis, const std::shared_ptr< PositionSensor > &position) | |
Construct a new AxisPositionMonitor Device. More... | |
DeviceType | type () const override |
Get device type. More... | |
std::shared_ptr< Axis > | axisDevice () const |
std::shared_ptr< PositionSensor > | positionSensorDevice () const |
![]() | |
DeviceId | uid () const |
Get the address of device. 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 | |
Protected Attributes | |
std::weak_ptr< MFEPlatform > | m_mfe |
![]() | |
std::weak_ptr< Axis > | m_axis |
std::weak_ptr< PositionSensor > | m_position |
![]() | |
const std::string | m_uid |
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... | |
Definition at line 33 of file MFEAxisPositionMonitor.hpp.
|
overridevirtual |
get device configuration value
name | value to retrieve |
Reimplemented from smc::DeviceBase.
Definition at line 258 of file MFEAxisPositionMonitor.cpp.
|
overridevirtual |
Get last known difference.
updateSignal
is emitted whenever this value updated
Implements smc::AxisPositionMonitor.
Definition at line 185 of file MFEAxisPositionMonitor.cpp.
|
overridevirtual |
Get last known state.
Implements smc::AxisPositionMonitor.
Definition at line 204 of file MFEAxisPositionMonitor.cpp.
|
overridevirtual |
set device configuration value
name | name of the configuration value to set |
value | value to set |
Reimplemented from smc::DeviceBase.
Definition at line 278 of file MFEAxisPositionMonitor.cpp.
|
overridevirtual |
Enable/disable the monitor.
the difference may still be monitored even if disabled
enabling a TRIGGERED
monitor will re-arm it and reset its max-difference counter
Implements smc::AxisPositionMonitor.
Definition at line 141 of file MFEAxisPositionMonitor.cpp.