EEROS  0.4.1.0
API for the EEROS Real-Time Robotics Framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FlinkFqd.hpp
Go to the documentation of this file.
1 #ifndef ORG_EEROS_HAL_FLINKFQD_HPP_
2 #define ORG_EEROS_HAL_FLINKFQD_HPP_
3 
4 #include <string>
5 #include <flinklib.h>
8 
9 namespace eeros {
10  namespace hal {
11 
12  class FlinkFqd : public ScalablePeripheralInput<double> {
13  public:
14  FlinkFqd(std::string id, FlinkDevice* device, uint32_t subDeviceNumber, uint32_t channel, double scale = 1, double offset = 0, bool getDelta = false);
15  virtual double get();
16  void reset();
17 
18  private:
19  flink_subdev* subdeviceHandle;
20  uint32_t channel;
21  uint16_t prevPos;
22  double pos;
23  bool getDelta;
24  };
25  };
26 };
27 
28 #endif /* ORG_EEROS_HAL_FLINKFQD_HPP_ */
Definition: ScalablePeripheralInput.hpp:11
Definition: FlinkFqd.hpp:12
void reset()
Definition: FlinkFqd.cpp:33
FlinkFqd(std::string id, FlinkDevice *device, uint32_t subDeviceNumber, uint32_t channel, double scale=1, double offset=0, bool getDelta=false)
Definition: FlinkFqd.cpp:5
double scale
Definition: ScalablePeripheralInput.hpp:22
Definition: FlinkDevice.hpp:10
double offset
Definition: ScalablePeripheralInput.hpp:23