Rev 397 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 397 | Rev 399 | ||
---|---|---|---|
1 | #ifndef COMMUNICATION_H |
1 | #ifndef COMMUNICATION_H |
2 | #define COMMUNICATION_H |
2 | #define COMMUNICATION_H |
3 | #include <string> |
3 | #include <string> |
4 | 4 | ||
5 | /** |
5 | /** |
6 | * communication interface for Mikrokopter (MK) USART connection |
6 | * communication interface for Mikrokopter (MK) USART connection |
7 | */ |
7 | */ |
8 | 8 | ||
9 | using namespace std; |
9 | using namespace std; |
10 | 10 | ||
11 | class Communication{ |
11 | class Communication{ |
- | 12 | protected: |
|
- | 13 | bool connected; |
|
12 | public: |
14 | public: |
13 | //connect to MK |
15 | //connect to MK |
14 | virtual void connect_MK(string) {}; |
16 | virtual void connect_MK(string) {}; |
15 | //send command to MK |
17 | //send command to MK |
16 | virtual bool send_cmd(char, int, char[150],unsigned int, bool) { return false; }; |
18 | virtual bool send_cmd(char, int, char[150],unsigned int, bool) { return false; }; |
17 | virtual void stop_resend() {}; |
19 | virtual void stop_resend() {}; |
- | 20 | ||
- | 21 | bool is_connected(); |
|
18 | }; |
22 | }; |
19 | #endif |
23 | #endif |