Rev 500 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 500 | Rev 513 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | #define USE_COLOR |
7 | #define USE_COLOR |
8 | #define ERROR_COLOR COLOR_FG_DARKRED |
8 | #define ERROR_COLOR COLOR_FG_DARKRED |
9 | #define WARNING_COLOR COLOR_BG_LIGHTYELLOW |
9 | #define WARNING_COLOR COLOR_BG_LIGHTYELLOW |
- | 10 | #define INFO_COLOR COLOR_NORMAL |
|
- | 11 | //FlightCtrl |
|
- | 12 | #define INFO_FC_COLOR COLOR_NORMAL |
|
- | 13 | //NaviCtrl |
|
- | 14 | #define INFO_NC_COLOR COLOR_FG_DARKBLUE |
|
- | 15 | //GPS |
|
- | 16 | #define INFO_GPS_COLOR COLOR_FG_DARKGREY |
|
- | 17 | //MK3MAG |
|
Line 10... | Line 18... | ||
10 | #define INFO_COLOR COLOR_NORMAL |
18 | #define INFO_MK3_COLOR COLOR_FG_DARKGREEN |
11 | 19 | ||
12 | /** |
20 | /** |
Line 13... | Line 21... | ||
13 | * The FlightLog saves a human-readable log, so that we can see, what happened. |
21 | * The FlightLog saves a human-readable log, so that we can see what happened. |
14 | */ |
22 | */ |
15 | 23 | ||
16 | class FlightLog { |
24 | class FlightLog { |
Line 17... | Line 25... | ||
17 | private: |
25 | private: |
18 | //TODO: use a struct that contains timestamp and encoded data? |
26 | //TODO: use a struct that contains timestamp and encoded data? |
- | 27 | static char * log_str; |
|
- | 28 | ||
- | 29 | public: |
|
- | 30 | static void info(char * dat); |
|
19 | static char * log_str; |
31 | static void info_FC(char * dat); |
20 | 32 | static void info_NC(char * dat); |
|
- | 33 | static void info_GPS(char * dat); |
|
21 | public: |
34 | static void info_MK3(char * dat); |
Line 22... | Line 35... | ||
22 | static void info(char * dat); |
35 | static void warning(char * dat); |
23 | static void warning(char * dat); |
36 | static void error(char * dat); |