Subversion Repositories Projects

Compare Revisions

Regard whitespace Rev 523 → Rev 524

/QMK-Groundstation/branches/libMK/libMK/FlightLog.cpp
16,7 → 16,7
char buffer [20];
timeval timestamp;
gettimeofday(&timestamp, 0);
sprintf(buffer, "%i.%03i", timestamp.tv_sec, (timestamp.tv_usec+500)/1000);
sprintf(buffer, "%i.%07i", timestamp.tv_sec, timestamp.tv_usec);
//alternative to show human readable output
/*
time_t rawtime;
/QMK-Groundstation/branches/libMK/libMK/Handler.cpp
69,7 → 69,9
com->send_cmd('m', ADDRESS_FC, tx_data, length, true);
}
 
//FIXME: implement me!
int Handler::get_motor_config(char * tx_data) {
FlightLog::error("get motor config not implemented");
return -1;
}
 
/QMK-Groundstation/branches/libMK/libMK/Makefile
7,7 → 7,7
CXXINCS = -I"./" -I"../"
CXXFLAGS = $(CXXINCS) -O3
 
LINKOBJ = Kopter.o FlightLog.o Parser.o Communication.o Handler.o
LINKOBJ = Kopter.o FlightLog.o Parser.o Communication.o Handler.o TestingCommunication.o
 
all: all-before $(LINKOBJ)
 
/QMK-Groundstation/branches/libMK/libMK/TestingCommunication.cpp
0,0 → 1,0
 
/QMK-Groundstation/branches/libMK/libMK/TestingCommunication.h
0,0 → 1,24
#ifndef TESTING_COMMUNICATION_H
#define TESTING_COMMUNICATION_H
#include "Communication.h"
#include "Handler.h"
#include "FlightLog.h"
 
/**
* Dummy class that stores the communication data for testing
*/
 
class TestingCommunication : public Communication {
 
private:
Handler * handler;
char * data;
public:
TestingCommunication(Handler * handler);
void connect_MK(char * addr);
void received_data(char * data, int length);
void send_cmd(char cmd, int address, char data[150], unsigned int length, bool resend);
void stop_resend();
void get_data(char * data);
};
#endif
/QMK-Groundstation/branches/libMK/libMK/.
Property changes:
Added: svn:ignore
+depend