Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
524 | Brean | 1 | #ifndef TESTING_COMMUNICATION_H |
2 | #define TESTING_COMMUNICATION_H |
||
3 | #include "Communication.h" |
||
4 | #include "Handler.h" |
||
5 | #include "FlightLog.h" |
||
6 | |||
7 | /** |
||
8 | * Dummy class that stores the communication data for testing |
||
9 | */ |
||
10 | |||
11 | class TestingCommunication : public Communication { |
||
12 | |||
13 | private: |
||
14 | Handler * handler; |
||
15 | char * data; |
||
16 | public: |
||
17 | TestingCommunication(Handler * handler); |
||
18 | void connect_MK(char * addr); |
||
19 | void received_data(char * data, int length); |
||
20 | void send_cmd(char cmd, int address, char data[150], unsigned int length, bool resend); |
||
21 | void stop_resend(); |
||
22 | void get_data(char * data); |
||
23 | }; |
||
24 | #endif |