EEROS  0.4.1.0
API for the EEROS Real-Time Robotics Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ScalablePeripheralInput.hpp
Go to the documentation of this file.
1 #ifndef ORG_EEROS_HAL_SCALABLEPERIPHERALINPUT_HPP_
2 #define ORG_EEROS_HAL_SCALABLEPERIPHERALINPUT_HPP_
3 
4 #include <string>
6 
7 namespace eeros {
8  namespace hal {
9 
10  template <typename T>
12  public:
13  ScalablePeripheralInput(std::string id, T scale, T offset) : PeripheralInput<T>(id), scale(scale), offset(offset) { }
15 
16  virtual T getScale() { return scale; }
17  virtual T getOffset() { return offset; }
18  virtual void setScale(T s) { scale = s; }
19  virtual void setOffset(T o) { offset = o; }
20 
21  protected:
22  T scale;
23  T offset;
24  };
25 
26  };
27 };
28 
29 #endif /* ORG_EEROS_HAL_SCALABLEPERIPHERALINPUT_HPP_ */
Definition: PeripheralInput.hpp:15
Definition: ScalablePeripheralInput.hpp:11
ScalablePeripheralInput(std::string id, T scale, T offset)
Definition: ScalablePeripheralInput.hpp:13
virtual void setOffset(T o)
Definition: ScalablePeripheralInput.hpp:19
virtual void setScale(T s)
Definition: ScalablePeripheralInput.hpp:18
virtual T getScale()
Definition: ScalablePeripheralInput.hpp:16
virtual ~ScalablePeripheralInput()
Definition: ScalablePeripheralInput.hpp:14
T scale
Definition: ScalablePeripheralInput.hpp:22
T offset
Definition: ScalablePeripheralInput.hpp:23
virtual T getOffset()
Definition: ScalablePeripheralInput.hpp:17