Subversion Repositories Projects

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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