Subversion Repositories Projects

Rev

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
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
-
 
18
#define INFO_MK3_COLOR      COLOR_FG_DARKGREEN
11
 
19
 
12
/**
20
/**
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 {
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?
19
        static char * log_str;
27
        static char * log_str;
20
 
28
 
21
    public:
29
    public:
22
        static void info(char * dat);
30
        static void info(char * dat);
-
 
31
        static void info_FC(char * dat);
-
 
32
        static void info_NC(char * dat);
-
 
33
        static void info_GPS(char * dat);
-
 
34
        static void info_MK3(char * dat);
23
        static void warning(char * dat);
35
        static void warning(char * dat);
24
        static void error(char * dat);
36
        static void error(char * dat);
-
 
37
        static void log_data(char * data, int length);
25
};
38
};
26
 
39
 
27
#endif
40
#endif
28
41