Rev 396 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 396 | Rev 397 | ||
---|---|---|---|
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 | public: |
12 | public: |
13 | //connect to MK |
13 | //connect to MK |
14 | virtual void connectMK(string) {}; |
14 | virtual void connect_MK(string) {}; |
15 | //send command to MK |
15 | //send command to MK |
16 | virtual bool sendCmd(char, int, char[150],unsigned int, bool) { return false; }; |
16 | virtual bool send_cmd(char, int, char[150],unsigned int, bool) { return false; }; |
17 | virtual void stopReSend() {}; |
17 | virtual void stop_resend() {}; |
18 | }; |
18 | }; |
19 | #endif |
19 | #endif |