Subversion Repositories Projects

Rev

Rev 393 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 393 Rev 396
Line 1... Line 1...
1
#ifndef HANDLER_H
1
#ifndef HANDLER_H
2
#define HANDLER_H
2
#define HANDLER_H
3
#include <string>
3
#include <string>
4
#include <Parser.h>
4
#include "Parser.h"
5
#include <Communication.h>
5
#include "Communication.h"
-
 
6
#include "Kopter.h"
-
 
7
#include "../Parameter_Positions.h"
Line 6... Line 8...
6
 
8
 
7
/**
9
/**
8
 * The Handler handels commands that are send from/to the Mikrokopter
10
 * The Handler handels commands that are send from/to the Mikrokopter
9
 * and parses them using the Parser-class.
11
 * and parses them using the Parser-class.
Line 10... Line 12...
10
 */
12
 */
11
 
13
 
12
class Handler {
14
class Handler {
-
 
15
    private:
-
 
16
        Communication * com;
-
 
17
 
13
    private:
18
        //buffer to send data
14
        Communication * com;
19
        //char tx_data[150];
15
    public:
20
    public:
16
        Handler(Communication * com);
21
        Handler(Communication * com);
-
 
22
        void read_mixer();
17
        void read_mixer();
23
        void receive_data(sRxData rx);
Line 18... Line 24...
18
        void receive_data(sRxData rx);
24
        void get_motor_config();
19
};
25
};