25 #ifndef POSITION_HPP__
26 #define POSITION_HPP__
31 #include "../Units.hpp"
32 #include "DeviceBase.hpp"
44 typedef std::shared_ptr<PositionSensor> Shared;
69 virtual std::future<units::value_t>
getPosition(units::unit_t unit)
const = 0;
DeviceType type() const override
Get device type.
virtual units::value_t lastPosition(units::unit_t unit) const =0
Get last known position.
PositionSensor(const std::string &address)
Construct a new POSITION Device at given location on given platform.
virtual std::future< void > setActualPosition(const units::value_t &value) const
Set the current position value.
virtual std::future< units::value_t > getPosition(units::unit_t unit) const =0
Get current position value.
DeviceType
List of possible device types supported.
main motion-lib namespace