Joint Level Control
rotary_encoder.h
1 #ifndef ROTARY_ENCODER_H
2 #define ROTARY_ENCODER_H
3 
4 #include <string>
23 {
24 public:
29  RotaryEncoder(const std::string& spi_device, uint8_t spi_cs_id, uint8_t spi_mode, uint8_t spi_bits, uint32_t spi_speed, uint16_t spi_delay);
30  ~RotaryEncoder();
34  double getValue();
35 
36 private:
37  std::string spi_device_;
38  uint8_t spi_cs_id_;
39  uint8_t spi_mode_;
40  uint8_t spi_bits_;
41  uint32_t spi_speed_;
42  uint16_t spi_delay_;
43  double zero_point_ ;
44 
45 };
46 
47 #endif
This class abstracts the communication with Sensors of the Extendjoints (currently a E6A2-C rotary en...
Definition: rotary_encoder.h:23
RotaryEncoder(const std::string &spi_device, uint8_t spi_cs_id, uint8_t spi_mode, uint8_t spi_bits, uint32_t spi_speed, uint16_t spi_delay)
Definition: rotary_encoder.cpp:5
double getValue()
Definition: rotary_encoder.cpp:16