LRT13  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
LRTServo.h
1 #ifndef LRT_SERVO_H_
2 #define LRT_SERVO_H_
3 
4 //#include "..\..\General.h"
5 #include "Servo.h"
6 
7 class LRTServo : public Servo
8 {
9 private:
10  bool enabled;
11  float previous_value_; //use for detecting changes.
12 
13 public:
14  char* m_name; //user supplied name of servo for diagnostics
15  LRTServo(UINT32 channel, char* name);
16  ~LRTServo();
17 
18  void SetEnabled(bool enabled);
19  bool IsEnabled();
20 
21  void Set(float value);
22  void SetAngle(float angle);
23  void SetMicroseconds(int ms);
24 };
25 
26 #endif