Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 499 → Rev 500

/QMK-Groundstation/branches/libMK/libMK/FlightLog.h
0,0 → 1,27
#ifndef FLIGHTLOG_H
#define FLIGHTLOG_H
#include "Kopter.h"
#include "../typedefs.h"
#include <string>
 
#define USE_COLOR
#define ERROR_COLOR COLOR_FG_DARKRED
#define WARNING_COLOR COLOR_BG_LIGHTYELLOW
#define INFO_COLOR COLOR_NORMAL
 
/**
* The FlightLog saves a human-readable log, so that we can see, what happened.
*/
 
class FlightLog {
private:
//TODO: use a struct that contains timestamp and encoded data?
static char * log_str;
 
public:
static void info(char * dat);
static void warning(char * dat);
static void error(char * dat);
};
 
#endif