Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 392 → Rev 391

/QMK-Groundstation/branches/own_com_lib/com/QTCommunication.cpp
File deleted
\ No newline at end of file
/QMK-Groundstation/branches/own_com_lib/com/QTCommunication.h
File deleted
\ No newline at end of file
/QMK-Groundstation/branches/own_com_lib/com/Communication.h
File deleted
\ No newline at end of file
/QMK-Groundstation/branches/own_com_lib/com/Handler.cpp
1,16 → 1,9
#include<Handler.h>
 
/**
* Constructor that gets a communication instance
*/
Handler::Handler(Communication * com) {
this->com = com;
}
 
/**
* read mixer values from FlightCtrl
*/
void Handler::read_mixer() {
TX_Data[0] = 0;
com->send_cmd('n', ADDRESS_FC, TX_Data, 1, true);
o_Connection->send_Cmd('n', ADDRESS_FC, TX_Data, 1, true);
}
/QMK-Groundstation/branches/own_com_lib/com/Handler.h
2,7 → 2,6
#define HANDLER_H
#include <string>
#include <Parser.h>
#include <Communication.h>
 
/**
* The Handler handels commands that are send from/to the Mikrokopter
10,10 → 9,7
*/
 
class Handler {
private:
Communication * com;
public:
Handler(Communication * com);
void read_mixer();
};