LRT13  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
LEDIndicatorData.h
1 #ifndef LED_INDICATOR_DATA_H_
2 #define LED_INDICATOR_DATA_H_
3 
4 #include <WPILib.h>
5 
6 namespace data
7 {
8  namespace indicators
9  {
10  enum Indicator
11  {
12  RIGHT_ARROW = 0,
13  UP_ARROW = 1,
14  LEFT_ARROW = 2,
15  DOWN_ARROW = 3
16  };
17 
18  class LEDIndicatorData
19  {
20  public:
21  LEDIndicatorData();
22 
23  bool IsIndicatorChangeRequested(Indicator arrow);
24  void IsIndicatorChangeRequested(Indicator arrow, bool value);
25 
26  void SetIndicatorColor(unsigned char red, unsigned char green, unsigned char blue, Indicator arrow);
27 
28  char GetColorR(Indicator arrow);
29  char GetColorG(Indicator arrow);
30  char GetColorB(Indicator arrow);
31  UINT32 GetCombinedColor(Indicator arrow);
32 
33  private:
34  UINT32 m_indicatorColor[4];
35  bool m_changeRequested[4];
36  };
37  };
38 };
39 
40 #endif