libkipr  1.0.0
servo.hpp
Go to the documentation of this file.
1 #ifndef _KIPR_SERVO_SERVO_HPP_
2 #define _KIPR_SERVO_SERVO_HPP_
3 
4 namespace kipr
5 {
6  namespace servo
7  {
8  class Servo
9  {
10  public:
11  typedef unsigned int ticks_t;
12 
13  Servo(int port);
14 
16 
17  ticks_t position() const;
18 
19  void disable();
20  void enable();
21  void setEnabled(bool enabled);
22  bool isEnabled() const;
23 
24  private:
25  int m_port;
26  };
27  }
28 }
29 
30 #endif
Definition: servo.hpp:9
ticks_t position() const
unsigned int ticks_t
Definition: servo.hpp:11
bool isEnabled() const
void setEnabled(bool enabled)
void setPosition(ticks_t position)
Definition: accel.hpp:7