Subversion Repositories Projects

Rev

Rev 393 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 393 Rev 396
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"
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.
10
 */
12
 */
11
 
13
 
12
class Handler {
14
class Handler {
13
    private:
15
    private:
14
        Communication * com;
16
        Communication * com;
-
 
17
 
-
 
18
        //buffer to send data
-
 
19
        //char tx_data[150];
15
    public:
20
    public:
16
        Handler(Communication * com);
21
        Handler(Communication * com);
17
        void read_mixer();
22
        void read_mixer();
18
        void receive_data(sRxData rx);
23
        void receive_data(sRxData rx);
-
 
24
        void get_motor_config();
19
};
25
};
20
 
26
 
21
#endif
27
#endif