EEROS
0.4.1.0
API for the EEROS Real-Time Robotics Framework
Main Page
Namespaces
Classes
Files
File List
File Members
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>
5
#include <
eeros/hal/PeripheralInput.hpp
>
6
7
namespace
eeros {
8
namespace
hal {
9
10
template
<
typename
T>
11
class
ScalablePeripheralInput
:
public
PeripheralInput
<T> {
12
public
:
13
ScalablePeripheralInput
(std::string
id
, T
scale
, T
offset
) :
PeripheralInput
<T>(id), scale(scale), offset(offset) { }
14
virtual
~ScalablePeripheralInput
() { }
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_ */
eeros::hal::PeripheralInput
Definition:
PeripheralInput.hpp:15
eeros::hal::ScalablePeripheralInput
Definition:
ScalablePeripheralInput.hpp:11
eeros::hal::ScalablePeripheralInput::ScalablePeripheralInput
ScalablePeripheralInput(std::string id, T scale, T offset)
Definition:
ScalablePeripheralInput.hpp:13
eeros::hal::ScalablePeripheralInput::setOffset
virtual void setOffset(T o)
Definition:
ScalablePeripheralInput.hpp:19
eeros::hal::ScalablePeripheralInput::setScale
virtual void setScale(T s)
Definition:
ScalablePeripheralInput.hpp:18
eeros::hal::ScalablePeripheralInput::getScale
virtual T getScale()
Definition:
ScalablePeripheralInput.hpp:16
eeros::hal::ScalablePeripheralInput::~ScalablePeripheralInput
virtual ~ScalablePeripheralInput()
Definition:
ScalablePeripheralInput.hpp:14
PeripheralInput.hpp
eeros::hal::ScalablePeripheralInput::scale
T scale
Definition:
ScalablePeripheralInput.hpp:22
eeros::hal::ScalablePeripheralInput::offset
T offset
Definition:
ScalablePeripheralInput.hpp:23
eeros::hal::ScalablePeripheralInput::getOffset
virtual T getOffset()
Definition:
ScalablePeripheralInput.hpp:17
includes
eeros
hal
ScalablePeripheralInput.hpp
Generated on Wed Jul 8 2015 11:18:07 for EEROS by
1.8.6