Subversion Repositories Projects

Rev

Rev 462 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
462 Brean 1
#ifndef COMMUNICATION_H
2
#define COMMUNICATION_H
513 Brean 3
#include <iostream>
462 Brean 4
 
5
/**
6
 * communication interface for Mikrokopter (MK) USART connection
7
 */
8
 
9
class Communication{
10
    protected:
11
        bool connected;
12
    public:
13
        //connect to MK
14
        virtual void connect_MK(char *) {};
15
        //send command to MK
16
        virtual void send_cmd(char, int, char[150],unsigned int, bool) {};
17
        virtual void stop_resend() {};
18
        virtual void received_data(char *) {};
19
        void connection_established();
20
        void connection_lost();
21
        bool is_connected();
22
};
23
#endif