LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
CollectorRollersData.h
1 #ifndef COLLECTOR_ROLLERS_DATA_H_
2 #define COLLECTOR_ROLLERS_DATA_H_
3 
4 #include "ComponentData.h"
5 
10 {
11 public:
12  enum Direction
13  {
14  FORWARD,
15  REVERSE
16  };
17 
19  static CollectorRollersData* Get();
20 
21  void SetRunning(bool run);
22  bool IsRunning();
23 
24  void SetSpeed(float speed);
25  float GetSpeed();
26 
27  void SetDirection(Direction direction);
28  Direction GetDirection();
29 
30  void ResetCommands();
31  void Log();
32 
33 private:
34  bool m_running;
35  Direction m_direction;
36  float m_speed;
37 
38  friend class CollectorRollers;
39 };
40 
41 #endif